You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Design System React is expecting the last child in a button group to be an element, however React allows non-element children such as Boolean, undefined or null.
Thanks for opening your first issue! 👋
If you have found this library helpful, please star it. A maintainer will try to respond within 7 days. If you haven’t heard anything by then, please bump this thread.
Design System React is expecting the last child in a button group to be an element, however React allows non-element children such as Boolean, undefined or null.
https://reactjs.org/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored
This occurs when building a button group like so:
The issue seems to be here, where
cloneElement
is called for the last item in the child array and assumes that it will be an element:https://github.com/salesforce/design-system-react/blob/master/components/button-group/index.jsx#L86
The text was updated successfully, but these errors were encountered: