Closed VolhaBazhkova closed 2 weeks ago
Note: I suggest to add ignoreParentClass
into Modal
-component and pass outsidePress
into useDismiss
Discussed on daily and we decided to update the ticket: initial problem: Windows are closed automatically if to close the error on 'x'. Example, with publish and unpublish window. decided to fix it: We want to allow pop-ups to be closed on X only, need to forbid to close the pop-up automatically on clicking outside the window.
Verified on staging env successfully. The following forms can be closed now on 'X' or Cancel buttons only. They remain on the screen if to click on any area outside the windows:
All other confirmations and some windows where user doesn't need to type any info manually can be closed automatically on the click outside. For example:
EPAM AI DIAL chat version
0.16.0
What happened?
Now all pop-up windows are closed if to click out side of them. For example, while publication request there could be an error. If to close the error on 'x', clickoutside action is triggered and publication window is closed automatically. It confuses as user has to start publication from the beginning.
Example: https://github.com/user-attachments/assets/aa46ef23-2ca8-4647-8bba-c5b1db9498c1
Expected: We want to allow pop-ups to be closed on X only, need to forbid to close the pop-up automatically on clicking outside the window. No need to do this for any confirmation pop-ups.
Confidential information