-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alert user before closing the createItemModal form (#3317)
The form data inside the `createItemModal` was getting lost when user hit the `cancel` button. This could lead to a bad UX. This fix will identifies if form data has changed from its initial values before closing the modal. If yes, then it alerts the user for confirmation. Otherwise, will close the modal. Closes: #2822 Add cypress test for confirmation modal Co-authored-by: Mike <mike@madebymike.com.au>
- Loading branch information
1 parent
1a661e4
commit b0af7d5
Showing
3 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@keystonejs/app-admin-ui': patch | ||
--- | ||
|
||
Alerted the user before canceling the createItemModal form. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters