You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When holding a key down or typing too fast the browser tab get overloaded and will crash.
Expected behavior
There should not be a crash from input.
Steps to reproduce
Click on the Tom select
Hold any key down
Additional context
The problem stems from the onInput() function cause by the 'Input' event listener.
If searching is disabled this event listener seems to not be needed as it functions properly without it. Without the event listener there is no crash when holding a key down.
The function needs some optimizations to be able to not crash, it could be beneficial to add a delay before it accepts another event.
The text was updated successfully, but these errors were encountered:
What browser are you using? I'm unable to reproduce this in the latest versions of either Chrome or Safari on the "Basic Examples" page of the docs (https://tom-select.js.org/examples/).
Bug description
When holding a key down or typing too fast the browser tab get overloaded and will crash.
Expected behavior
There should not be a crash from input.
Steps to reproduce
Additional context
The problem stems from the onInput() function cause by the 'Input' event listener.
If searching is disabled this event listener seems to not be needed as it functions properly without it. Without the event listener there is no crash when holding a key down.
The function needs some optimizations to be able to not crash, it could be beneficial to add a delay before it accepts another event.
The text was updated successfully, but these errors were encountered: