Change JavaScript form submit() calls to requestSubmit() #4508

Open
opened 2026-02-05 09:02:23 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @ssddanbrown on GitHub (Mar 13, 2024).

As described here: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit

This would play nicer with normal event handling.
Thought about while helping build a JS hack, where existing submit event was difficult to override since it ignores the event system.

Originally created by @ssddanbrown on GitHub (Mar 13, 2024). As described here: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit This would play nicer with normal event handling. Thought about while helping build a JS hack, where existing submit event was difficult to override since it ignores the event system.
OVERLORD added the 🔧 Maintenance💻 Front-End labels 2026-02-05 09:02:23 +03:00
Author
Owner

@shresthkapoor7 commented on GitHub (Jun 20, 2025):

Hey Dan, I’d like to work on this. I’ll audit the .submit() usage across the frontend and swap them with requestSubmit() where safe. Let me know if there are any edge cases I should watch for.

@shresthkapoor7 commented on GitHub (Jun 20, 2025): Hey Dan, I’d like to work on this. I’ll audit the .submit() usage across the frontend and swap them with requestSubmit() where safe. Let me know if there are any edge cases I should watch for.
Author
Owner

@ssddanbrown commented on GitHub (Jun 23, 2025):

@shresthkapoor7 Sure, go ahead, thanks!
I'm not sure of any specific edge-cases, I just ask that you manually test each related submit which is changed.

@ssddanbrown commented on GitHub (Jun 23, 2025): @shresthkapoor7 Sure, go ahead, thanks! I'm not sure of any specific edge-cases, I just ask that you manually test each related submit which is changed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4508