Skip to content

Commit 2d6b74c

Browse files
committed
Also check if search input should be focussed for multiselects
1 parent ed0bae3 commit 2d6b74c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

select2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,9 @@ the specific language governing permissions and limitations under the Apache Lic
28272827
}
28282828

28292829
this.updateResults(true);
2830-
this.search.focus();
2830+
if (this.opts.shouldFocusInput(this)) {
2831+
this.search.focus();
2832+
}
28312833
this.opts.element.trigger($.Event("select2-open"));
28322834
},
28332835

0 commit comments

Comments
 (0)