From e39e4d0e089fbd175e01a30a4d8a087b707c1e3b Mon Sep 17 00:00:00 2001 From: Dominik Schab Date: Thu, 31 Oct 2024 14:38:37 -0400 Subject: [PATCH] ControlButtonGroup do not set bordered if child is a DOM element --- src/ControlButtonGroup/ControlButtonGroup.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ControlButtonGroup/ControlButtonGroup.tsx b/src/ControlButtonGroup/ControlButtonGroup.tsx index d0793cfb..aa969885 100644 --- a/src/ControlButtonGroup/ControlButtonGroup.tsx +++ b/src/ControlButtonGroup/ControlButtonGroup.tsx @@ -36,7 +36,9 @@ function ControlButtonGroup({ onChange: handleChangeValue, } : {}; - if (row && child.props.bordered === undefined) { + const isDOMElement = typeof child.type === 'string'; + + if (!isDOMElement && child.props.bordered === undefined) { childProps.bordered = true; }