fix(password): Fix add password button on Safari

This commit is contained in:
Mihai-Andrei Uscat 2020-12-18 14:47:00 +02:00 committed by GitHub
parent 33e4324f6d
commit a5fe26bfdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -106,7 +106,11 @@ function PasswordSection({
*/ */
function onPasswordSave() { function onPasswordSave() {
if (formRef.current) { if (formRef.current) {
formRef.current.querySelector('form').requestSubmit(); const { value } = formRef.current.querySelector('form > input');
if (value) {
onPasswordSubmit(value);
}
} }
} }