naja-js / naja

Modern AJAX library for Nette Framework
https://naja.js.org
MIT License
109 stars 15 forks source link

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

Closed jiripudil closed 2 months ago

jiripudil commented 2 months ago

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.