Repository navigation
Commit 7884629
committed
fix(panel-tabs): forward the PanelTabs and PanelTab refs on React 18
PanelTabs and PanelTab read `ref` from their props, which only React 19
passes to a function component. On React 18, which the peer range
allows, the ref was dropped with a warning, so a host could not reach
the row or a tab's root.
Wrap both in forwardRef so the refs land on both versions.1 parent 7ac7601 commit 7884629
2 files changed
Lines changed: 347 additions & 328 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
| |||
220 | 226 | | |
221 | 227 | | |
222 | 228 | | |
| 229 | + | |
223 | 230 | | |
224 | 231 | | |
225 | 232 | | |
| |||
0 commit comments