We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad21d01 commit ed0bae3Copy full SHA for ed0bae3
1 file changed
select2.js
@@ -2144,7 +2144,11 @@ the specific language governing permissions and limitations under the Apache Lic
2144
killEvent(e);
2145
}));
2146
2147
- dropdown.on("mousedown touchstart", this.bind(function() { this.search.focus(); }));
+ dropdown.on("mousedown touchstart", this.bind(function() {
2148
+ if (this.opts.shouldFocusInput(this)) {
2149
+ this.search.focus();
2150
+ }
2151
+ }));
2152
2153
selection.on("focus", this.bind(function(e) {
2154
0 commit comments