Closed lehelk closed 4 months ago
Known issue, it's because the Children.map()
does not go deeper than one level, so the props are not injected in the dynamically generated buttons due to being an []
array instead of a ReactNode
or JSX.Element
.
Steps to reproduce
Will have the following result:
Current behavior
On the second line in the provided screenshot (where there are dynamically generated buttons) the 3rd button has rounded borders on the right hand side while the 5th button doesn't have rounded borders on the right hand side.
Expected behavior
On the second line in the provided screenshot (where there are dynamically generated buttons) the 3rd button shouldn't have any rounded borders while the 5th button should have rounded borders on the right hand side.