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

Prevent opening of disabled elements #5751

Merged
merged 2 commits into from Jan 28, 2020

Conversation

mcountis
Copy link
Contributor

Return early from Select2#open if the object is disabled.

Addresses #4695.

@kevin-brown
Copy link
Member

kevin-brown commented Jan 24, 2020

Unfortunately this pull request contains files in the dist folder, and as a result there is a merge conflict.

If you are still interested in making this contribution, feel free to remove the dist changes from this pull request and leave a comment asking for this to be re-reviewed. Or make a new pull request from the same branch, and we'll try to get around to reviewing it this time.

Gist: return early from the Select2#open method if the object is
disabled.

Add helper #isEnabled and #isDisabled methods to Select2 and selector
classes.

Add test coverage for the original, expected behavior and new
preventative behavior.
@mcountis
Copy link
Contributor Author

mcountis commented Jan 24, 2020

@kevin-brown, please re-review this PR. I have rebased the branch and reverted all dist/ files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants