From ef2ef8b685c1ade1f5bf5cd691ce94a8b8e55437 Mon Sep 17 00:00:00 2001 From: alexweissman Date: Wed, 25 Oct 2017 22:45:29 -0400 Subject: [PATCH] Fix keyboard not closing when closing dropdown on iOS 10 (#4680) --- CHANGELOG.md | 1 + src/js/select2/dropdown/search.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index eac8f500..8760be98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 4.0.6 ### Bug fixes +- Fix keyboard not closing when closing dropdown on iOS 10 (#4680) - User-defined types not normalized properly when passed in as data (#4632) ## 4.0.5 diff --git a/src/js/select2/dropdown/search.js b/src/js/select2/dropdown/search.js index 8cbbd754..026fb543 100644 --- a/src/js/select2/dropdown/search.js +++ b/src/js/select2/dropdown/search.js @@ -60,6 +60,7 @@ define([ self.$search.attr('tabindex', -1); self.$search.val(''); + self.$search.blur(); }); container.on('focus', function () {