Commit 83650c0
committed
Implement click-outside-to-close functionality in CustomDropdownMenu
- Added a method to hide the dropdown menu when clicking outside of it.
- Bound the click event to the master widget to detect clicks outside the dropdown.
- Unbound the click event when the dropdown is hidden to prevent unnecessary event handling.1 parent 3316935 commit 83650c0
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | 105 | | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
111 | 117 | | |
112 | 118 | | |
113 | 119 | | |
| |||
0 commit comments