Whenever I dynamically change the value of an input
field ($("#test").val("test")
or $("#test").value = "test"
) then physically click the field then exit the input
the value reverts back to ""
. Physically changing the value retains the value.
I have tried:
- physically removing all event listeners on the page in Chrome DevTools
- $("input").off();
- $("input").click(function(e) {
e.preventDefault();
e.stopImmediatePropagation();
return false;
});
$("input").blur(function(e) {
e.preventDefault();
e.stopImmediatePropagation();
return false;
});
$("input").focusout(function(e) {
e.preventDefault();
e.stopImmediatePropagation();
return false;
});
I have checked network traffic and nothing has changed on change.
The system uses React, dojo, dijit if that is relevant / helps.
Thanks for any assistance!