Skip to content

magic-libraries/prevent-default

Repository files navigation

@magic-libraries/prevent-default

an effect that calls event.prevent-default for any event.

this library gets imported into @magic apps automagically.

html-docs

@magic

NPM version Linux Build Status Windows Build Status Coverage Status Greenkeeper badge Known Vulnerabilities

usage

in a page/component, just use the lib.preventDefault effect

a({
  to: '/somewhere',
  onclick: [actions.component.click, lib.preventDefault],
})

form({
  name: 'form-name',
  onsubmit: [actions.form.submit, lib.preventDefault],
})

changelog

0.0.1

first commit

0.0.2

fix readme

0.0.3

require node 13.5.0

0.0.4

bump required node version

0.0.5

bump required node version to 14.15.4

0.0.6

update dependencies

0.0.7 - unreleased

...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published