Skip to content

fix: updating form-submit-once to be 'submit once'#488

Open
0xDracula wants to merge 1 commit into
hackclub:mainfrom
0xDracula:fix/form-submit-once
Open

fix: updating form-submit-once to be 'submit once'#488
0xDracula wants to merge 1 commit into
hackclub:mainfrom
0xDracula:fix/form-submit-once

Conversation

@0xDracula

Copy link
Copy Markdown
Member

what's this do?

Users were able to press reply multiple times which causes duplicate comments when replying to a devlog/post in /projects/id and commenting on any devlog

Now it's disabled by using turbo to listen for turbo:submit-end and locking the button.

This issue wasn't happening when trying to comment from the home page as it was using composer_controller.js which is similar to what I did using turbo

show it works

recording_2026-06-10_01.09.02.mp4

ai? No

closes #438

@0xDracula

Copy link
Copy Markdown
Member Author

form-submit-once was only used for this & the rsvp, so nothing will be broken/affected!

@0xDracula 0xDracula changed the title fix updating form submit once to be 'submit once' fix: updating form-submit-once to be 'submit once' Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

duplicate comments when 'post ' button is clicked before next page loads

1 participant