You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #9892 Use <button> instead of <a> for JavaScript interactive buttons (Calinou)
This PR was merged into the 2.8 branch.
Discussion
----------
Use <button> instead of <a> for JavaScript interactive buttons
This removes the need to call `preventDefault()` to disable the default action of `<a>` elements, since `<button type="button">` has no default action whatsoever.
See also [this Stack Overflow question](https://stackoverflow.com/questions/469059/button-vs-input-type-button-which-to-use) about the `<button>` HTML tag.
Commits
-------
87db1b6 Use <button> instead of <a> for JavaScript interactive buttons
0 commit comments