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

Commits on Jan 24, 2020

  1. Prevent a disabled element from opening via keydown/keypress events

    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 committed Jan 24, 2020
    Copy the full SHA
    c56571c View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2020

  1. Copy the full SHA
    09b233b View commit details
    Browse the repository at this point in the history