-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
fix: disable save button upon submitting #6250
fix: disable save button upon submitting #6250
Conversation
Please also submit a PR to fix this on the main branch. Otherwise the fix will be missing in Volto 18 and later. |
It seems there are some broken acceptance tests. I tried to run them locally and it appears that the issues where the tests break are not related to the code I changed in this PR. I tried to run the test locally and it seems that the only wrong thing with that test is that the breaking line should be:
as the style tag actually only has that attribute. |
@sabrina-bongiovanni some tests are known to be flaky. I triggered a rerun of failed jobs in CI. Let's see if the 5 failed ones pass this time. |
@stevepiercy Remember that you changed the upload action to v4 within https://github.com/plone/volto/pull/6242/files but that is only for main. That change should be backported also to 17 |
@sabrina-bongiovanni @ichim-david PR to bump actions/upload-artifact created in #6253. |
When submitting the Add form upon creating a new Content Type, if the connection is too slow, the button will start loading and the spinner will appear, but it will remain clickable, thus allowing to submit the form and trigger the query multiple times, which in turn results in creating more instances of the same CT.
Adding the disabled prop to the button when the query is still loading prevents this issue from happening.