Skip to content

Commit 6545a40

Browse files
authored
Merge pull request #4607 from electroluxcode/fix/rightclick-draggle
2 parents 8aba85f + 9e1fe80 commit 6545a40

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

apps/www/src/registry/ui/block-draggable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const DragHandle = React.memo(function DragHandle({
247247
onMouseDown={(e) => {
248248
resetPreview();
249249

250-
if (e.button !== 0 || e.shiftKey) return;
250+
if ((e.button !== 0 && e.button !== 2) || e.shiftKey) return;
251251

252252
const blockSelection = editor
253253
.getApi(BlockSelectionPlugin)

docs/components/changelog.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Since Plate UI is not a component library, a changelog is maintained here.
88

99
Use the [CLI](https://platejs.org/docs/components/cli) to install the latest version of the components.
1010

11+
## September 2025 #26
12+
13+
### September 5 #26.1
14+
- `block-draggable`: Fixed block selection to work with right-click events
15+
1116
## August 2025 #25
1217

1318
### August 17 #25.2

templates/plate-playground-template/src/components/ui/block-draggable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const DragHandle = React.memo(function DragHandle({
247247
onMouseDown={(e) => {
248248
resetPreview();
249249

250-
if (e.button !== 0 || e.shiftKey) return;
250+
if ((e.button !== 0 && e.button !== 2) || e.shiftKey) return;
251251

252252
const blockSelection = editor
253253
.getApi(BlockSelectionPlugin)

0 commit comments

Comments
 (0)