File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -81,19 +81,9 @@ function triggerFocusOnFirstInputField(firstField) {
8181 */
8282 function handleFocusOnSelect2Field (firstField ){
8383 $ (' .select2-search__field' ).remove ();
84- firstField .select2 (' open ' );
84+ firstField .select2 (' focus ' );
8585 }
8686
87- /*
88- * Hacky fix for a bug in select2 with jQuery 3.6.0's new nested-focus "protection"
89- * see: https://github.com/select2/select2/issues/5993
90- * see: https://github.com/jquery/jquery/issues/4382
91- *
92- */
93- $ (document ).on (' select2:open' , () => {
94- document .querySelector (' .select2-search__field' ).focus ();
95- });
96-
9787 jQuery (' document' ).ready (function ($ ){
9888
9989 // trigger the javascript for all fields that have their js defined in a separate method
You can’t perform that action at this time.
0 commit comments