1
0
mirror of synced 2024-11-30 00:26:03 +03:00

Also check if search input should be focussed for multiselects

This commit is contained in:
Lee Boynton 2014-03-31 21:01:06 +01:00
parent ed0bae39c9
commit 2d6b74c2ac

View File

@ -2827,7 +2827,9 @@ the specific language governing permissions and limitations under the Apache Lic
} }
this.updateResults(true); this.updateResults(true);
if (this.opts.shouldFocusInput(this)) {
this.search.focus(); this.search.focus();
}
this.opts.element.trigger($.Event("select2-open")); this.opts.element.trigger($.Event("select2-open"));
}, },