Skip to content
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

Bind UIHandler to form buttons without an explicit type attribute #397

Closed
jiripudil opened this issue Apr 22, 2024 · 0 comments · Fixed by #398
Closed

Bind UIHandler to form buttons without an explicit type attribute #397

jiripudil opened this issue Apr 22, 2024 · 0 comments · Fixed by #398
Labels

Comments

@jiripudil
Copy link
Member

Naja currently binds itself onto buttons with an explicit type="submit". However, for form-bound buttons (i.e. nested within a <form> or linked to one via the form attribute), submit is the default type and can be omitted. Naja needs to support this as well and treat clicks on these buttons as form submissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant