Sfoglia il codice sorgente

fix(password): Fix add password button on Safari

master
Mihai-Andrei Uscat 4 anni fa
parent
commit
a5fe26bfdb
Nessun account collegato all'indirizzo email del committer

+ 5
- 1
react/features/security/components/security-dialog/PasswordSection.js Vedi File

@@ -106,7 +106,11 @@ function PasswordSection({
106 106
      */
107 107
     function onPasswordSave() {
108 108
         if (formRef.current) {
109
-            formRef.current.querySelector('form').requestSubmit();
109
+            const { value } = formRef.current.querySelector('form > input');
110
+
111
+            if (value) {
112
+                onPasswordSubmit(value);
113
+            }
110 114
         }
111 115
     }
112 116
 

Loading…
Annulla
Salva