Skip to content

Commit

Permalink
fix: reset tool mode after update component code (#4723)
Browse files Browse the repository at this point in the history
fix bug related to tool mode
  • Loading branch information
anovazzi1 authored Nov 19, 2024
1 parent a0acf39 commit 9ceb18a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,10 @@ export default function NodeToolbarComponent({
open={openModal}
setOpen={setOpenModal}
dynamic={true}
setNodeClass={handleNodeClass}
setNodeClass={(apiClassType, type) => {
handleNodeClass(apiClassType, type);
setToolMode(false);
}}
nodeClass={data.node}
value={data.node?.template[name].value ?? ""}
>
Expand Down

0 comments on commit 9ceb18a

Please sign in to comment.