Confirm dialog submit button active while still downloading data
Version
6.3.0
Operating System
MacOS
Browser
Chrome
What are the steps to reproduce this bug?
I try to delete/publish/unpublish an entry. Whenever I do that, a confirm modal appears. And in the background a manage fetch is being called. I can hit the Confirm button even when the data is not yet loaded. In that case, an error appears, and the item is not deleted. When I wait enough time to finish the manage fetch, the modification works fine.
Here the dialog appears, the Confirm button is active:
If I click on it an error appears:
If I wait long enough so that the data is fetched, the dialog loads the data as well:
If I hit Confirm everything works as expected.
Here you can see that the manage fetch is still in progress, but the confirm button is active:
What is the expected behavior?
The confirm button should be inactive while the fetching is in progress.
What do you see instead?
I see that the confirm button is active, although the data is not yet loaded in the background. If I hit the confirm button, an error appears on the screen.
Additional information
No response
Possible solution
The button should only be active when the data has been loaded successfully.
Source: webiny/webiny-js