From 3307133eb9e54125e1ab436f096a76bcffd8d01e Mon Sep 17 00:00:00 2001 From: Melloware Date: Fri, 27 Oct 2023 08:33:41 -0400 Subject: [PATCH] Fix #5169: SplitterPanel allow id (#5174) --- components/lib/splitter/Splitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/splitter/Splitter.js b/components/lib/splitter/Splitter.js index a92c850fb2..358e4c2474 100644 --- a/components/lib/splitter/Splitter.js +++ b/components/lib/splitter/Splitter.js @@ -246,7 +246,6 @@ export const Splitter = React.memo( ref: (el) => (gutterRefs.current[index] = el), className: cx('gutter'), style: props.layout === 'horizontal' ? { width: props.gutterSize + 'px' } : { height: props.gutterSize + 'px' }, - onMouseDown: (event) => onGutterMouseDown(event, index), onTouchStart: (event) => onGutterTouchStart(event, index), onTouchMove: (event) => onGutterTouchMove(event), @@ -274,6 +273,7 @@ export const Splitter = React.memo( const rootProps = mergeProps( { key: index, + id: getPanelProp(panel, 'id'), className: panelClassName, style: { ...getPanelProp(panel, 'style'), flexBasis }, role: 'presentation',