From a5fe26bfdb83dcec06dd0d78cbf6392c3b29d83b Mon Sep 17 00:00:00 2001 From: Mihai-Andrei Uscat <52234168+muscat1@users.noreply.github.com> Date: Fri, 18 Dec 2020 14:47:00 +0200 Subject: [PATCH] fix(password): Fix add password button on Safari --- .../security/components/security-dialog/PasswordSection.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/react/features/security/components/security-dialog/PasswordSection.js b/react/features/security/components/security-dialog/PasswordSection.js index 083ddfcd3..9d182aa14 100644 --- a/react/features/security/components/security-dialog/PasswordSection.js +++ b/react/features/security/components/security-dialog/PasswordSection.js @@ -106,7 +106,11 @@ function PasswordSection({ */ function onPasswordSave() { if (formRef.current) { - formRef.current.querySelector('form').requestSubmit(); + const { value } = formRef.current.querySelector('form > input'); + + if (value) { + onPasswordSubmit(value); + } } }