You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$passkeyDelayedForm doesn't reset when you cancel inside the async onSubmit function.
await authenticatePasskey() pops up a prompt for the user and waits for their input. When the user inputs their information quickly, $delayed will get reset. If the user takes too long though and the form is canceled, the $delayed won't reset giving me an infinite loading state.
I verified that with every interaction that it is making it into the if block:
When I print the output of $passkeyDelayedForm after the form.cancel() however, it says that it's true when there is a long enough delay. It will print false if it's done quickly.
The text was updated successfully, but these errors were encountered:
onSubmit is not asynchronous, you need to have a separate variable and use form.cancel in onSubmit if the variable is empty, then call your auth function which submits the form again when it has the credentials.
Description
A clear and concise description of what the bug is, and, unless obvious, what you expected instead.
$passkeyDelayedForm
doesn't reset when you cancel inside the async onSubmit function.await authenticatePasskey()
pops up a prompt for the user and waits for their input. When the user inputs their information quickly,$delayed
will get reset. If the user takes too long though and the form is canceled, the$delayed
won't reset giving me an infinite loading state.I verified that with every interaction that it is making it into the
if
block:When I print the output of
$passkeyDelayedForm
after theform.cancel()
however, it says that it's true when there is a long enough delay. It will print false if it's done quickly.The text was updated successfully, but these errors were encountered: