mirror of
https://github.com/kognise/water.css.git
synced 2026-01-21 20:45:52 +01:00
Prevent submitting the demo form (#272)
* Prevent submitting the demo form When the submit button on the demo form is pressed, the form is actually submitted and the page is refreshed. Let's prevent the form from submitting by adding a dummy onsubmit handler that returns false. * Create hungry-eagles-shout.md Co-authored-by: Kognise <felix.mattick@gmail.com>
This commit is contained in:
parent
d4a5412de4
commit
059b290e2b
2 changed files with 6 additions and 1 deletions
5
.changeset/hungry-eagles-shout.md
Normal file
5
.changeset/hungry-eagles-shout.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"water.css": patch
|
||||
---
|
||||
|
||||
Prevent submitting the demo form
|
||||
|
|
@ -198,7 +198,7 @@
|
|||
<p>This is supposed to be a demo page so we need more elements!</p>
|
||||
|
||||
<h3 id="form-elements">Form elements</h3>
|
||||
<form>
|
||||
<form onsubmit="return false;">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" name="email" id="email" placeholder="john.doe@gmail.com" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue