Skip to content

Instantly share code, notes, and snippets.

@yallups
Last active October 19, 2015 22:54
Show Gist options
  • Save yallups/ea797dceaa2c18898554 to your computer and use it in GitHub Desktop.
Save yallups/ea797dceaa2c18898554 to your computer and use it in GitHub Desktop.
This is a work around for returning false from `select:opening`
$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