Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Change toolbar buttons from type "submit" (the default) to "button" #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gpetrioli
Copy link

This solves a problem when the pagedown is part of a form.
Currently when pressing enter inside another textbox (<input type="text" />) it will cause the first button in the pagedown plugin to be clicked.

Set the buttons to by of `type="button"` in order to avoid them being treated as submit buttons when in a `form`.
Make plugin buttons to be of `type="button"` to avoid them being treated as submit buttons when in a `form`.
@gpetrioli gpetrioli changed the title Change toolbar buttons from type submit to button Change toolbar buttons from type "submit" (the default) to "button" Dec 16, 2014
@woahdae
Copy link

woahdae commented Apr 3, 2018

Awesome, thanks for this. I was hunting around for some javascript code capturing keypresses...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants