diff options
author | Noah Loomans <noahloomans@gmail.com> | 2016-12-07 11:34:26 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2016-12-07 11:34:26 +0100 |
commit | f03a20dec91879984a961342e2d20adb61c05ea0 (patch) | |
tree | e60996d502a2d19a17300990f02ae63371088086 /public/javascripts/main.js | |
parent | ee4d88bc633bb997700c787a40ebd325da249bf4 (diff) |
fixed keyboard not closing on iOS safari
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r-- | public/javascripts/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js index 7daedcf..63c3f66 100644 --- a/public/javascripts/main.js +++ b/public/javascripts/main.js @@ -185,6 +185,9 @@ window.addEventListener('blur', function () { const oldValue = inputNode.value inputNode.value = '' inputNode.value = oldValue + + // this will hide the keyboard (iOS safari) + document.activeElement.blur() }) searchNode.addEventListener('blur', function (e) { |