Skip to content

Instantly share code, notes, and snippets.

@ranafaraz
Created July 14, 2021 05:43
Show Gist options
  • Save ranafaraz/9f400063ddab9680b3e5d6357a10646e to your computer and use it in GitHub Desktop.
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.
// 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