-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
The same form is submitted multiple times #10112
Comments
Cannot reproduce. I am continuously clicking the create button and no requests are made. Screen.Recording.2023-12-12.at.14.00.22.mov |
Multiple clicking on the submit button creates duplicates entry. I think this is a serious issue still exist on the latest version... |
Please show me how to reproduce it, check the video above |
This video shows regular click and multiple clicks. Recording.3.mp4 |
i have this problem too, |
same issue here, some of my users can still click submit button after loading state, before the page refresh on slow network. I have to manually correct double entries for money transactions :D still waiting for fix :) |
The only reproduction repo that has been posted is the demo, in which I cannot reproduce the problem. This will remain closed until someone posts a new repo that works to reproduce the problem |
You have to add this function on class CreateClass, until this issue fixed
|
Thank you rami, it worked for me |
Thats Beautiful and Thank You |
What OS and browser are you all using? I still cant get it to submit multiple times |
@danharrin |
dude... are you not reading what I am writing? |
Yup, we are using chrome last version and linux OS |
@ramimarashdeh1995 @shabxs @yesterselga @Arsham-rmz what OS are you using, I don't have Linux to test on |
@danharrin |
I used windows 11 and chrome browser |
I can now get it to happen on Windows, but only if I throttle the network. A request is able to sneak through when the Livewire response arrives but before Livewire redirects the user to the next page. It seems like an bug in Livewire but it might be something we can work around within Filament. |
What I understand is it's not a filament issue, neither livewire. Same issue occurs with regular submit actions on plain blade, including nova which is on vuejs. As @danharrin mentioned a workaround fix on filament future releases would be great. Thanks in advance. |
Hello guys, just a confirmation that we have the same issue. Just one more stress the issue really exists. Thanks for your work. |
This didn't work for me |
Package
filament/filament
Package Version
v3.1.12
Laravel Version
v10.35.0
Livewire Version
v3.2.6
PHP Version
PHP 8.2.0
Problem description
When creating a record, clicking the Create button continuously will cause the form to be submitted repeatedly.
Expected behavior
Button keeps display loading animation and disable button until page redirects
Steps to reproduce
https://demo.filamentphp.com/blog/posts/create
Clicking the Create button continuously.
Reproduction repository
https://github.com/filamentphp/demo
Relevant log output
No response
Donate 💰 to fund this issue
The text was updated successfully, but these errors were encountered: