diff --git a/components/lib/splitter/Splitter.js b/components/lib/splitter/Splitter.js index 83ef09818b..b1827d7d58 100644 --- a/components/lib/splitter/Splitter.js +++ b/components/lib/splitter/Splitter.js @@ -23,7 +23,7 @@ export const Splitter = React.memo( const isStateful = props.stateKey != null; const childrenLength = props.children && props.children.length; - const panelSize = (sizes, index) => (index in sizes ? sizes[index] : (props.children[index].props.size || 100) / childrenLength); + const panelSize = (sizes, index) => (index in sizes ? sizes[index] : props.children[index].props.size || 100 / childrenLength); const [bindDocumentMouseMoveListener, unbindDocumentMouseMoveListener] = useEventListener({ type: 'mousemove', listener: (event) => onResize(event) }); const [bindDocumentMouseUpListener, unbindDocumentMouseUpListener] = useEventListener({