Procházet zdrojové kódy

fix(password): Fix add password button on Safari

j8
Mihai-Andrei Uscat před 4 roky
rodič
revize
a5fe26bfdb
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 5
- 1
react/features/security/components/security-dialog/PasswordSection.js Zobrazit soubor

@@ -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
 

Načítá se…
Zrušit
Uložit