Skip to content

Commit 30e1224

Browse files
authored
Add hardcoded exceptions to preventing enter keypresses in workflow form (#2674)
Fixes #2675
1 parent dde2342 commit 30e1224

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/features/crawl-workflows/workflow-editor.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,9 @@ https://archiveweb.page/images/${"logo.svg"}`}
23062306

23072307
if (
23082308
key === "Enter" &&
2309-
this.progressState!.activeTab !== STEPS[STEPS.length - 1]
2309+
this.progressState!.activeTab !== STEPS[STEPS.length - 1] &&
2310+
// Prevent places where Enter is valid from being stopped
2311+
!["TEXTAREA", "SL-TEXTAREA"].includes(el.tagName)
23102312
) {
23112313
// Prevent submission by "Enter" keypress if not on last tab
23122314
event.preventDefault();

0 commit comments

Comments
 (0)