This library is a helper library extracted from @bluem/form-change-tracker to be reused in other contexts. It merely serves for getting the name of the event emitted by an HTML form element when changed (for example: “click” for a checkbox, “change” for a <select>
element).
This library will work (at least) on:
- Google Chrome Desktop and Android (any version)
- Firefox Desktop and Android (any version)
- Safari Desktop and iOS (any version)
- Microsoft Edge (any version)
- Microsoft IE11 (older versions untested)
The library is an ES6 module, so the way to use it depends on your tooling and the browsers you want to support. But basic usage is:
// If using native ES6 module in browser:
import formControlEvenName from './node_modules/@bluem/form-control-event-name/index.js';
// OR:
// If using Webpack or Parcel for bundling:
// import formControlEventName from '@bluem/form-control-event-name/index.js';
formControlEventName(myFormElement); // Will return the name of the event (string)
Install npm depencencies, then run npm run test
or npm run test-coverage
.
MIT License
- Updated npm dependencies to fix vulnerabilites in dev dependencies. No changes in the module itself.
- Updated npm dependencies to fix vulnerabilites in dev dependencies. No relevant change in the module itself.
- Updated npm dependencies to fix vulnerabilites in dev dependencies. No changes in the module itself.
- Updated npm dependencies to fix vulnerabilites in dev dependencies. No changes in the module itself.
- Fix IE11 compatibility, for cases where ES6 is not transpiled to ES5.
- Updated npm dependencies to fix some vulnerabilites in 3rd-party code
- Updated npm dependencies to fix vulnerabilites in 3rd-party code. No changes in the module itself.
- Updated npm dependencies to fix vulnerabilites in 3rd-party code. No changes in the module itself.
- Initial release