소스 검색

fix(password): Fix add password button on Safari

j8
Mihai-Andrei Uscat 4 년 전
부모
커밋
a5fe26bfdb
No account linked to committer's email address
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      react/features/security/components/security-dialog/PasswordSection.js

+ 5
- 1
react/features/security/components/security-dialog/PasswordSection.js 파일 보기

@@ -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…
취소
저장