Ver código fonte

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.
j8
Leonard Kim 8 anos atrás
pai
commit
283140d16a
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6
    1
      css/_base.scss

+ 6
- 1
css/_base.scss Ver arquivo

1
-* {
1
+/**
2
+ * Safari will limit input in input elements to one character when user-select
3
+ * none is applied. Other browsers already support selecting within inputs while
4
+ * user-select is none. As such, disallow user-select except on inputs.
5
+ */
6
+*:not(input) {
2
     -webkit-user-select: none;
7
     -webkit-user-select: none;
3
     user-select: none;
8
     user-select: none;
4
 }
9
 }

Carregando…
Cancelar
Salvar