Bladeren bron

fix(password): Fix add password button on Safari

master
Mihai-Andrei Uscat 4 jaren geleden
bovenliggende
commit
a5fe26bfdb
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. 5
    1
      react/features/security/components/security-dialog/PasswordSection.js

+ 5
- 1
react/features/security/components/security-dialog/PasswordSection.js Bestand weergeven

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

Laden…
Annuleren
Opslaan