aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-12-07 11:34:26 +0100
committerNoah Loomans <noahloomans@gmail.com>2016-12-07 11:34:26 +0100
commitf03a20dec91879984a961342e2d20adb61c05ea0 (patch)
treee60996d502a2d19a17300990f02ae63371088086 /public/javascripts/main.js
parentee4d88bc633bb997700c787a40ebd325da249bf4 (diff)
fixed keyboard not closing on iOS safari
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r--public/javascripts/main.js3
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) {