Commit 8a7b737
fix: do not consider touchstart event as outside click (ng-select#2697)
`touchstart` events were considered as outside clicks, which caused the
dropdown to be closed when scrolling outside the select component on
mobile devices. `click` events are sufficient to detect outside clicks
on mobile devices. Tapping outside the select component still closes the
dropdown.
Reverts ng-select#737. Fixes ng-select#2594.
Co-authored-by: Pavan Kumar Jadda <17564080+pavankjadda@users.noreply.github.com>1 parent b9e079c commit 8a7b737
File tree
2 files changed
+2
-11
lines changed- src/ng-select/lib
2 files changed
+2
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2399 | 2399 | | |
2400 | 2400 | | |
2401 | 2401 | | |
2402 | | - | |
2403 | | - | |
2404 | | - | |
2405 | | - | |
2406 | | - | |
2407 | | - | |
2408 | | - | |
2409 | | - | |
2410 | | - | |
2411 | 2402 | | |
2412 | 2403 | | |
2413 | 2404 | | |
| |||
0 commit comments