3.2.0
New features
- ✨
UIHandler.submitForm()
helper method now accepts a submitter element as its first parameter, in addition to a form. However, the nativeform.requestSubmit()
method is the recommended way to manually dispatch form submissions to Naja in modern browsers.
Minor changes and bugfixes
- 🔧 UI binding to forms has been simplified (#401, #402, thanks @filiphlm). Naja now does not bind itself onto submitter elements, instead it listens only on
submit
events of forms. Theinteraction
event'selement
property continues to refer to the submitter element when available. - 🔧 Naja switched to the
exports
field in package.json
Compatibility considerations
Naja continues to hold its compatibility promise of working correctly "in the latest versions of Chromium (Chrome and Edge), Firefox, and WebKit (Safari)."
With this release, Naja newly relies on APIs that might not be available in some older versions of these browsers. If you still need to support these, please check the compatibility and available polyfills for the SubmitEvent.submitter
property, and the submitter
parameter in FormData()
constructor.