Commit 48c34ef
committed
fix: Prevent reset progress dialog from closing before action completes
The click-outside handler was using mousedown which fires before click.
When clicking the confirm button, the handler would close the dialog
before the click event could trigger handleConfirmReset, preventing
the reset from executing.
Added a ref to the confirmation dialog and updated the click-outside
handler to also check if clicks occur inside the dialog.1 parent 44faac1 commit 48c34ef
1 file changed
Lines changed: 7 additions & 1 deletion
File tree
- components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
202 | 207 | | |
203 | 208 | | |
204 | 209 | | |
| 210 | + | |
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
| |||
0 commit comments