diff --git a/.changeset/warm-sloths-tickle.md b/.changeset/warm-sloths-tickle.md new file mode 100644 index 00000000000..1a300487110 --- /dev/null +++ b/.changeset/warm-sloths-tickle.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +Update the resize behavior of PageLayout to ignore right clicks when resizing diff --git a/src/PageLayout/PageLayout.tsx b/src/PageLayout/PageLayout.tsx index 378d8fe8c3d..7b18f7bf0b4 100644 --- a/src/PageLayout/PageLayout.tsx +++ b/src/PageLayout/PageLayout.tsx @@ -352,9 +352,11 @@ const VerticalDivider: React.FC { - setIsDragging(true) - onDragStart?.() + onMouseDown={event => { + if (event.button === 0) { + setIsDragging(true) + onDragStart?.() + } }} onKeyDown={event => { if (