From 15f3bf3f7ffbdd428d3a112200a5dec03d8e87f7 Mon Sep 17 00:00:00 2001 From: CeciliaAvila Date: Fri, 10 Feb 2023 11:29:15 -0300 Subject: [PATCH] Fix focus conditions in NodeWrapper. --- .../src/adaptive-flow-editor/renderers/NodeWrapper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Composer/packages/adaptive-flow/src/adaptive-flow-editor/renderers/NodeWrapper.tsx b/Composer/packages/adaptive-flow/src/adaptive-flow-editor/renderers/NodeWrapper.tsx index 7382b23732..f175f3de0f 100644 --- a/Composer/packages/adaptive-flow/src/adaptive-flow-editor/renderers/NodeWrapper.tsx +++ b/Composer/packages/adaptive-flow/src/adaptive-flow-editor/renderers/NodeWrapper.tsx @@ -67,8 +67,8 @@ export const ActionNodeWrapper = ({ id, tab, data, onEvent, hideComment, childre const { focusedId, focusedEvent, focusedTab } = useContext(NodeRendererContext); const { selectedIds, getNodeIndex } = useContext(SelectionContext); const nodeFocused = focusedId === id || focusedEvent === id; - const nodeDoubleSelected = tab && nodeFocused && tab === focusedTab; const nodeSelected = selectedIds.includes(id); + const nodeDoubleSelected = tab && nodeFocused && tab === focusedTab && nodeSelected; const nodeId = `action-${selectableId}`; const declareElementAttributes = (selectedId: string, id: string) => {