Skip to content

Commit

Permalink
upd: selected component block when primary input is focused
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Nov 12, 2023
1 parent dc01525 commit fb88799
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/northstar/src/blocks/component/getContent.r.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export function getContent(block: ComponentBlock) {
inputRef.current!.inputRef.current!.node.onchange = () => {
currentGraph.pushRecord();
};
inputRef.current!.inputRef.current!.node.onfocus = () => {
currentGraph.addSelectedBlock(block, false);
_.$update();
};
},
);
};
Expand Down

0 comments on commit fb88799

Please sign in to comment.