Last active
October 19, 2015 22:54
-
-
Save yallups/ea797dceaa2c18898554 to your computer and use it in GitHub Desktop.
This is a work around for returning false from `select:opening`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$select.on('select2:opening', function () { | |
... | |
$select.one('select2:open', function () { | |
$select.select2('close'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment