fix(password): Fix add password button on Safari
This commit is contained in:
parent
33e4324f6d
commit
a5fe26bfdb
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue