@magic-libraries/prevent-default

0.0.6 • Public • Published

@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

...

Package Sidebar

Install

npm i @magic-libraries/prevent-default

Weekly Downloads

271

Version

0.0.6

License

AGPL-3.0

Unpacked Size

38.3 kB

Total Files

4

Last publish

Collaborators

  • jascha