Created
October 19, 2016 07:39
-
-
Save trungpv93/5c094d69b560823fba38e2a810c8d8a1 to your computer and use it in GitHub Desktop.
Fix issue Select2 in Modal Bootstrap
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
//Fix Select2 In Modal | |
$.fn.modal.Constructor.prototype.enforceFocus = function () { | |
//Initialize Select2 Elements | |
$(".select2").select2(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment