Commit 4151f73
committed
Override
The original implementation inadvertently relied on a browser event
property that is only present on firefox. After looking at the original
source code in the library and some more experimentation, it looks like
we can override a different function to set the library's
`interactingWithList` variable to false when the dropdown is initially
opened. We can then rely on the `onResultsMouseDown` function to switch
that variable back to true when a result is clicked on and trigger the
proper selection behavior.Autocomplete.open instead of Autocomplete.onInputBlur
1 parent ca692b9 commit 4151f73
2 files changed
+13
-8
lines changedLines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments