Skip to content

skipEvent()

Prevents the default browser action and stops event propagation.

Example:

ts
button.addEventListener('click', (event) => skipEvent(event));

Released under the MIT License.