fix(editor): Close node creator when clicking on new canvas (no-changelog) (#10086)

This commit is contained in:
Alex Grozav 2024-07-18 11:45:19 +03:00 committed by GitHub
parent 2c710ac7d2
commit a04c4335da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1026,6 +1026,7 @@ async function checkAndInitDebugMode() {
function onClickPane(position: CanvasNode['position']) { function onClickPane(position: CanvasNode['position']) {
lastClickPosition.value = [position.x, position.y]; lastClickPosition.value = [position.x, position.y];
canvasStore.newNodeInsertPosition = [position.x, position.y]; canvasStore.newNodeInsertPosition = [position.x, position.y];
uiStore.isCreateNodeActive = false;
} }
/** /**