Commit 45f3b59
feat: add outside click event configuration to ng-select component (ng-select#2715)
* feat: update Angular dependencies to version 20.3.6
* fix: update Angular ESLint and other dependencies to latest versions
* fix: update Node engine compatibility in package.json
* fix: update Node engine compatibility in package.json
* fix: update Node version in CI configuration to 22
* feat: add outside click event configuration to ng-select component
- Introduced a new property `outsideClickEvent` to control the DOM event used for detecting outside clicks, defaulting to 'click'.
- Updated `NgDropdownPanelComponent` to utilize the new `outsideClickEvent` for improved outside click detection.
- Modified the HTML template to bind the `outsideClickEvent` property, enhancing flexibility in dropdown behavior.
This change improves the usability of the dropdown by allowing customization of the event used for closing the dropdown on outside interactions.
* docs: add documentation for outside click event type configuration in README
- Added a new entry for `outsideClickEventType` in the README to document its purpose and default value.
- This update enhances the clarity of the dropdown component's configuration options, providing users with better guidance on customizing outside click detection behavior.
---------
Co-authored-by: Pavan Kumar Jadda <17564080+pavankjadda@users.noreply.github.com>1 parent 827fb85 commit 45f3b59
File tree
5 files changed
+16
-3
lines changed- src/ng-select/lib
5 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
229 | 233 | | |
230 | 234 | | |
231 | 235 | | |
232 | | - | |
| 236 | + | |
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
0 commit comments