Skip to content

Commit 7a264ae

Browse files
authored
ControlButtonGroup do not set bordered if child is a DOM element (#1298)
1 parent 9108367 commit 7a264ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ControlButtonGroup/ControlButtonGroup.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ function ControlButtonGroup({
3636
onChange: handleChangeValue,
3737
} : {};
3838

39-
if (row && child.props.bordered === undefined) {
39+
const isDOMElement = typeof child.type === 'string';
40+
41+
if (!isDOMElement && row && child.props.bordered === undefined) {
4042
childProps.bordered = true;
4143
}
4244

0 commit comments

Comments
 (0)