Skip to content

3.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Jul 19:51
· 5 commits to main since this release
3.2.0
e9fbdb0

New features

  • UIHandler.submitForm() helper method now accepts a submitter element as its first parameter, in addition to a form. However, the native form.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. The interaction event's element 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.