Skip to content

Commit

Permalink
Rely on requestSubmit() being available everywhere
Browse files Browse the repository at this point in the history
Thanks to included polyfill
  • Loading branch information
dhh committed Nov 9, 2021
1 parent 18c93e9 commit a6f94e3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/tests/fixtures/drive_disabled.html
Expand Up @@ -10,11 +10,7 @@
if (event.target.id == "requestSubmit") {
event.preventDefault()
const form = event.target.closest('form')
if(typeof form.requestSubmit === "function"){
form.requestSubmit()
} else {
form.submit()
}
form.requestSubmit()
}
})
</script>
Expand Down

0 comments on commit a6f94e3

Please sign in to comment.