Created
July 14, 2021 05:43
-
-
Save ranafaraz/9f400063ddab9680b3e5d6357a10646e to your computer and use it in GitHub Desktop.
If we place a select2 in a pop up form, it do not allow to type. Use this piece of code to resolve this issue.
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
// globally override Bootstrap's behavior: | |
// Do this before you initialize any of your modals | |
$.fn.modal.Constructor.prototype.enforceFocus = function() {}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment