Commit b42fa88
authored
Fix submitting the form using Enter key.
Submitting the form using enter key (triggering submit event via input field) bypassed the isFormValid logic and redirected to success_url if form_valid, or to raw form with errors if form_invalid. This fixes that.1 parent c3b2052 commit b42fa88
File tree
1 file changed
+9
-1
lines changed- bootstrap_modal_forms/static/js
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| |||
169 | 177 | | |
170 | 178 | | |
171 | 179 | | |
172 | | - | |
| 180 | + | |
0 commit comments