-
-
Notifications
You must be signed in to change notification settings - Fork 155
Description
Some background; I use the word 'possible' here as some time ago, we needed this function, but in ES6, with ESM, vanilla instead of jQuery, with Bootstrap 5, and thus we ported to that. I check in now and again to see how things are here, but we're at this point a long way apart from where this started, so this might be completely irrelevant.
However, that all being said, as a result of this change in early April 2023:
The _checkValue()
function stopped dispatching change
events as a result of programmatically changing the input value.
I suspect that as a result of those change events no longer being dispatched, there might be inconsistent behavior with different browsers. It seems that Chrome will tend to issue change
events on its own as a result of programmatic changes to an input value, while Safari will not. I personally find the observed behavior in Chrome to be nonstandard, and so it's to me a question not of why Safari doesn't issue change events, but rather, why Chrome does -- in general, when you programmatically change an input, it's your responsibility to dispatch events.