Skip to content

Commit

Permalink
ControlButtonGroup do not set bordered if child is a DOM element (#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
domschab23 authored Nov 4, 2024
1 parent 9108367 commit 7a264ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ControlButtonGroup/ControlButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ function ControlButtonGroup({
onChange: handleChangeValue,
} : {};

if (row && child.props.bordered === undefined) {
const isDOMElement = typeof child.type === 'string';

if (!isDOMElement && row && child.props.bordered === undefined) {
childProps.bordered = true;
}

Expand Down

0 comments on commit 7a264ae

Please sign in to comment.