This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Commit 6f19d5f
committed
fix(drop-down): close drop-down regardless of
As of now, an event-handler on the `document` is responsible for closing the
drop-down. A click-event stops bubbling when `stopPropagation()` is called,
therefor it breaks the closing of the drop-down.
Registering the event-listener in capture phase fixes this bug.stopPropagation() calls1 parent 2f10304 commit 6f19d5f
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
211 | 215 | | |
212 | 216 | | |
213 | | - | |
| 217 | + | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
| |||
0 commit comments