From 63a4df65338c6582615d1518a0d2929152840383 Mon Sep 17 00:00:00 2001 From: zhiyan wang Date: Tue, 25 Mar 2025 04:18:30 +0800 Subject: [PATCH] fix: fix bug that modalInputs option is not working in toolbox area (#8817) --- core/toolbox/toolbox.ts | 1 + core/trashcan.ts | 1 + core/workspace_svg.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/core/toolbox/toolbox.ts b/core/toolbox/toolbox.ts index 120378393..556bc89e6 100644 --- a/core/toolbox/toolbox.ts +++ b/core/toolbox/toolbox.ts @@ -333,6 +333,7 @@ export class Toolbox 'horizontalLayout': workspace.horizontalLayout, 'renderer': workspace.options.renderer, 'rendererOverrides': workspace.options.rendererOverrides, + 'modalInputs': workspace.options.modalInputs, 'move': { 'scrollbars': true, }, diff --git a/core/trashcan.ts b/core/trashcan.ts index 05ae9fbf2..fdff7c50b 100644 --- a/core/trashcan.ts +++ b/core/trashcan.ts @@ -110,6 +110,7 @@ export class Trashcan 'oneBasedIndex': this.workspace.options.oneBasedIndex, 'renderer': this.workspace.options.renderer, 'rendererOverrides': this.workspace.options.rendererOverrides, + 'modalInputs': this.workspace.options.modalInputs, 'move': { 'scrollbars': true, }, diff --git a/core/workspace_svg.ts b/core/workspace_svg.ts index 6acd31c9c..94254a1ba 100644 --- a/core/workspace_svg.ts +++ b/core/workspace_svg.ts @@ -953,6 +953,7 @@ export class WorkspaceSvg extends Workspace implements IASTNodeLocationSvg { 'horizontalLayout': this.horizontalLayout, 'renderer': this.options.renderer, 'rendererOverrides': this.options.rendererOverrides, + 'modalInputs': this.options.modalInputs, 'move': { 'scrollbars': true, },