-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
still to do: success and warning states, autoresize
- Loading branch information
1 parent
e08bb65
commit 3632605
Showing
4 changed files
with
54 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
<form onsubmit="e => e.preventDefault()"> | ||
<form> | ||
<pf-text-area required></pf-text-area> | ||
<pf-button>Validate</pf-button> | ||
</form> | ||
|
||
<script type="module"> | ||
import '@patternfly/elements/pf-text-area/pf-text-area.js'; | ||
document.querySelector('form').addEventListener('submit', event => { | ||
event.preventDefault(); | ||
document.querySelector('pf-text-area').checkValidity(); | ||
}); | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters