Repository navigation
Commit 853b56e
fix(Tooltip): fix render failure if target ref is null (#1734)
This commit fixes an issue in the `getTarget` function, which was
returning `[null]` when the allElements param was true and the
ref passed in had a 'current' value of `null`. The downstream
effect of this was that tooltips would fail to render. The
`getTarget` function now returns an empty array ([]).
Fixes #16861 parent 87a6bda commit 853b56e
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
308 | 311 | | |
309 | 312 | | |
310 | 313 | | |
| |||
0 commit comments