bluzky/nice-select2

listening for 'input' event on original select control does not working with nice-select2

remdragon opened this issue · 1 comments

I'm currently registering for 'input' events on the that I create before calling NiceSelect.bind(): input.addEventListener( 'input', onChange ) This event was working before I started trying to use NiceSelect, now it has stopped working. It appears to be caused by the fact that NiceSelect is not updating the original element whenever the selection is changed in the replacement control.

I was able to resolve this by listening for the 'change' event instead of the 'input' event.