bootstrap-touchspin icon indicating copy to clipboard operation
bootstrap-touchspin copied to clipboard

Possible missing change events issue

Open bazineta opened this issue 5 months ago • 1 comments

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:

https://github.com/istvan-ujjmeszaros/bootstrap-touchspin/commit/75f1422153b09e36dbc15dfe0655955db1c9948a

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.

bazineta avatar Feb 28 '24 12:02 bazineta