@magic-libraries/prevent-default
v0.0.6
Published
@magic-libraries/preventDefault, effect usable to call event.preventDefault. Preinstalled in @magic/core.
Downloads
1,084
Maintainers
Readme
@magic-libraries/prevent-default
an effect that calls event.prevent-default for any event.
this library gets imported into @magic apps automagically.
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
...