Skip to content

Commit

Permalink
Add select2-bootstrap-modal-patch.js to Select2ScriptContributor.
Browse files Browse the repository at this point in the history
Resolve #3609
  • Loading branch information
maliming committed Apr 15, 2020
1 parent 66c226b commit 77ac85b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public override void ConfigureBundle(BundleConfigurationContext context)
{
//TODO: Add select2.full.min.js or localize!
context.Files.AddIfNotContains("/libs/select2/js/select2.min.js");
context.Files.AddIfNotContains("/libs/select2/js/select2-bootstrap-modal-patch.js");
}
}
}
3 changes: 2 additions & 1 deletion npm/packs/select2/abp.resourcemapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"@node_modules/select2/dist/css/select2.min.css": "@libs/select2/css/",
"@node_modules/select2/dist/js/select2.min.js": "@libs/select2/js/",
"@node_modules/select2/dist/js/select2.full.min.js": "@libs/select2/js/",
"@node_modules/select2/dist/js/i18n/*.js": "@libs/select2/js/i18n/"
"@node_modules/select2/dist/js/i18n/*.js": "@libs/select2/js/i18n/",
"@node_modules/@abp/select2/src/*.*": "@libs/select2/js/"
}
}
4 changes: 4 additions & 0 deletions npm/packs/select2/src/select2-bootstrap-modal-patch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
https://select2.org/troubleshooting/common-problems
*/
$.fn.modal.Constructor.prototype._enforceFocus = function () { };

0 comments on commit 77ac85b

Please sign in to comment.