Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified listener in order to avoid CHANGE event to be fired twice when "sliding" #120

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Sartoric
Copy link

Removed listener on MOUSE_UP event for the Switch main box when "sliding" because it will be detected twice (once on slider , once on switch) and the change event will be fired twice (before changing the switch state ad after).
For instance, this coud be an issue if checking the selected state of the switch on-change

Added the property disabled=false in order to enable/disable input in the textbox. This can be useful in case of editing form that should be "blocked" for some user category, or viceversa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant