Commit 55e5769
committed
🐛 Fix the toggle calendar utility to properly close the datepicker
- Update click outside detection to use closest method for class matching.
- Modified the click outside detection logic to utilize the `closest` method for checking ignored elements, ensuring compatibility with Element targets.
- Updated the corresponding test case for clarity.
Closes #62521 parent 548a1f3 commit 55e5769
File tree
2 files changed
+3
-3
lines changed- src
- test
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
0 commit comments