Skip to content

Commit

Permalink
Fix #5169: SplitterPanel allow id (#5174)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Oct 27, 2023
1 parent 51adeb4 commit 3307133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/splitter/Splitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 3307133

Please sign in to comment.