Skip to content

Commit

Permalink
fix-5221:prevent default to handle form submission
Browse files Browse the repository at this point in the history
Signed-off-by: Wasif Jameel <wasif.jameel1@gmail.com>
  • Loading branch information
chwasifjameel committed Apr 7, 2024
1 parent ceac67f commit b006e5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/login-resources/src/components/Form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
style:min-height={$deviceInfo.docHeight > 720 ? '42rem' : '0'}
on:keydown={(evt) => {
if (evt.key === 'Enter' && !inAction) {
evt.preventDefault();
validate($themeStore.language).then((res) => {
if (res) {
performAction(action)
Expand Down

0 comments on commit b006e5c

Please sign in to comment.