mirror of
https://github.com/kognise/water.css.git
synced 2025-08-09 22:57:00 +02: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:
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" />
|
||||
|
||||
|
Reference in New Issue
Block a user