From eb7a27251a6a8df0861595b2735be753b0371768 Mon Sep 17 00:00:00 2001 From: peterkogo Date: Tue, 28 Oct 2025 13:21:59 +0100 Subject: [PATCH] rename hasActiveSelection to isSelectionEnabled --- packages/react/src/container/Pane/index.tsx | 14 +++++++------- packages/svelte/src/lib/container/Pane/Pane.svelte | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/react/src/container/Pane/index.tsx b/packages/react/src/container/Pane/index.tsx index b57d8f3c..53b3d15e 100644 --- a/packages/react/src/container/Pane/index.tsx +++ b/packages/react/src/container/Pane/index.tsx @@ -77,7 +77,7 @@ export function Pane({ }: PaneProps) { const store = useStoreApi(); const { userSelectionActive, elementsSelectable, dragging, connectionInProgress } = useStore(selector, shallow); - const hasActiveSelection = elementsSelectable && (isSelecting || userSelectionActive); + const isSelectionEnabled = elementsSelectable && (isSelecting || userSelectionActive); const container = useRef(null); const containerBounds = useRef(); @@ -284,14 +284,14 @@ export function Pane({ return (
{@render children()}