EvoToolkit - v3.0.0 (Changelog)

fireEvent

This is a JavaScript helper function which lets you manually fire DOM events for elements.

Source

Contributors

Luke Harrison

Usage

When importing EvoToolkit directly as a compiled .js file without a build step, you can still use these tools through the global EvoToolkit object.

window.evotoolkit.tools.toolName()
import fireEvent from './../../../node_modules/evotoolkit/src/js/tools/fireEvent.js'; const myElem = document.querySelector('.js-my-elem'); fireEvent(myElem, 'change');