fix(editor): Don't hide FocusPanel when NodeCreator is opened to avoid canvas shift (no-changelog) (#17454)

This commit is contained in:
Charlie Kolb
2025-07-22 10:44:57 +02:00
committed by GitHub
parent 8fb3d8d587
commit c1aae67a04
5 changed files with 7 additions and 32 deletions

View File

@@ -981,10 +981,6 @@ function onUpdateNodeOutputs(id: string) {
}
function onClickNodeAdd(source: string, sourceHandle: string) {
if (isFocusPanelFeatureEnabled.value && focusPanelStore.focusPanelActive) {
focusPanelStore.hideFocusPanel();
}
nodeCreatorStore.openNodeCreatorForConnectingNode({
connection: {
source,
@@ -1218,10 +1214,6 @@ function onOpenSelectiveNodeCreator(
function onToggleNodeCreator(options: ToggleNodeCreatorOptions) {
nodeCreatorStore.setNodeCreatorState(options);
if (isFocusPanelFeatureEnabled.value && focusPanelStore.focusPanelActive) {
focusPanelStore.hideFocusPanel(options.createNodeActive);
}
if (!options.createNodeActive && !options.hasAddedNodes) {
uiStore.resetLastInteractedWith();
}
@@ -1246,10 +1238,6 @@ function onToggleFocusPanel() {
function closeNodeCreator() {
if (nodeCreatorStore.isCreateNodeActive) {
nodeCreatorStore.isCreateNodeActive = false;
if (isFocusPanelFeatureEnabled.value && focusPanelStore.focusPanelActive) {
focusPanelStore.hideFocusPanel(false);
}
}
}