@gunnarssongroup/fake-submit
v0.0.6
Published
Submit helper
Downloads
160
Maintainers
Readme
Fake Submit
Used instead of form.requestSubmit()
for safari browsers
Install
npm i --save @gunnarssongroup/fake-submit
-or-
yarn add @gunnarssongroup/fake-submit
Usage
import { FakeSubmit } from '@gunnarssongroup/fake-submit'
button.addEventListener('click', (e: Event & {target: HTMLButtonElement}) => {
FakeSubmit(form)
})