Closed toddoglethorpe closed 1 year ago
I'm getting a message on VS Code that this has been Deprecated but i can't find any docs anywhere to confirm
@AzySir there is messaging to this affect under https://garden.zendesk.com/components/button-group. However, this does not negate the fact that Garden (Tabs component, dropdowns, etc.) is not yet tuned-up for React 18 with StrictMode. We know this needs to be addressed and it is on the roadmap.
@jzempel thanks - sorry maybe a background colour for highlighting. Thanks for sharing !
Fixed by #1576. Release coming soon.
ButtonGroup's appear unable to work in React's strict mode. There's other issues in this repo mentioning problems running in strict mode, so perhaps this is already a known issue.
Expectation
Clicking a button in a ButtonGroup should select the button.
Reality
The component renders, but when clicking a button from the group a "Cannot read property 'focus' of null" error is thrown.
Steps to Reproduce
This is a codesandbox forked from the first ButtonGroup example in the docs with the only modification being that StrictMode is enabled.
https://codesandbox.io/s/vigorous-mendel-p3sip