Skip to content

Commit

Permalink
Fix focus conditions in NodeWrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceciliaavila committed Feb 10, 2023
1 parent 66a028a commit 15f3bf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 15f3bf3

Please sign in to comment.