-
-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recieve error when using form action to redirect page #1264
Comments
Thanks for the excellent reproduction! const interactiveMenuElems = elemPopup?.querySelectorAll(args.closeQuery || ''); When no closeQuery is provided it will default to empty string and that leads to a syntax error:
Should be an easy fix, I'll throw together a PR. Thanks for reporting! |
This reverts commit 4593e8b.
Current Behavior
I am currently using a form hidden within a popup to allow the user to logout. This submits a form action which triggers a redirect. After the user is redirect, the popup no longer exists since you are now on a page without the popup element existing.
Steps To Reproduce
Anything else?
Error as shown:
DOMException: Failed to execute 'querySelectorAll'(popup.js:105 Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Element': The provided selector is empty.)
The text was updated successfully, but these errors were encountered: