From 283140d16af276c6f0ea521036918a27affa09f3 Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Thu, 13 Apr 2017 15:32:02 -0700 Subject: [PATCH] fix: do not apply user-select none to inputs Safari will prevent proper input behavior when user-select none is applied. It prevents such actions as putting in a room lock password or setting a room lock password. Other browsers allow selecting on inputs while user-select is none. --- css/_base.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/css/_base.scss b/css/_base.scss index eb6ca7fb7..5774cbc54 100644 --- a/css/_base.scss +++ b/css/_base.scss @@ -1,4 +1,9 @@ -* { +/** + * Safari will limit input in input elements to one character when user-select + * none is applied. Other browsers already support selecting within inputs while + * user-select is none. As such, disallow user-select except on inputs. + */ +*:not(input) { -webkit-user-select: none; user-select: none; }