Forget Password Not Working On Chrome

Hello,

I have the following code setup on a lightbox for users to reset their passwords

import wixUsers from ‘wix-users’;
export function errorText_click(event) {
wixUsers.promptForgotPassword()
.then(() => {
console.log(“Password reset submitted”);
})
. catch ((err) => {
let errorMsg = err; // “The user closed the forgot password dialog”
});
}

The code is working on Safari but NOT on Chrome, is there a reason why? And what is the fix for this? Thanks!

Thank you for your reply! I cleared my cache and disabled all extensions and the problem still persists. I also deleted the element (text) on the lightbox that triggers that and replaced with a new one, didn’t solve it. In any case, my client is also reporting the problem on his end too.