Skip to content

Commit 455067e

Browse files
committed
fix select2#1391 make tabbing out work when no results message is shown
1 parent c36b53a commit 455067e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

select2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,8 @@ the specific language governing permissions and limitations under the Apache Lic
16511651
if (data) {
16521652
this.highlight(index);
16531653
this.onSelect(data, options);
1654+
} else if (options.noFocus) {
1655+
this.close();
16541656
}
16551657
},
16561658

0 commit comments

Comments
 (0)