Skip to content

Disable the "create" button after it is clicked to prevent duplication #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

haydngreatnews
Copy link
Contributor

@haydngreatnews haydngreatnews commented Nov 6, 2022

When the create form is used, it's possible to create several duplicate instances of a model (or, generically, make several calls to the create endpoint) while the modal is waiting for a response. Disabling this button in the event handler prevents the button from being repeatedly clicked.

Similar issue to #25 , but on the create side

When the create form is used, it's possible to create several duplicate
instances of a model (or, generically, make several calls to the create
endpoint) while the modal is waiting for a response. Disabling this
button in the event handler prevents the button from being repeatedly
clicked.
@haydngreatnews haydngreatnews force-pushed the fix/disable-create-button branch from 6fa178c to d608c01 Compare November 6, 2022 22:34
gasman pushed a commit that referenced this pull request Nov 28, 2022
#60)

When the create form is used, it's possible to create several duplicate
instances of a model (or, generically, make several calls to the create
endpoint) while the modal is waiting for a response. Disabling this
button in the event handler prevents the button from being repeatedly
clicked.
@gasman
Copy link
Collaborator

gasman commented Nov 28, 2022

Thanks @haydngreatnews! Merged in 5093e3c.

@gasman gasman closed this Nov 28, 2022
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.

2 participants