From 8e45af9a04b6657cce44d087d70ee618f22be429 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 3 Aug 2026 19:30:12 +0200 Subject: [PATCH] Fixed the spellchecking of the visual briefing text fields --- .../VisualBriefingAssistant.razor | 6 +++--- .../VisualBriefingAssistant.razor.cs | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/app/MindWork AI Studio/Assistants/VisualBriefing/VisualBriefingAssistant.razor b/app/MindWork AI Studio/Assistants/VisualBriefing/VisualBriefingAssistant.razor index 37e7524d..cfcc28dc 100644 --- a/app/MindWork AI Studio/Assistants/VisualBriefing/VisualBriefingAssistant.razor +++ b/app/MindWork AI Studio/Assistants/VisualBriefing/VisualBriefingAssistant.razor @@ -94,13 +94,13 @@ - + - + - + Stores whether this component instance has already left the renderer. private bool isDisposed; + /// Carries the spellchecking configuration to every text input of this assistant. + private static readonly Dictionary USER_INPUT_ATTRIBUTES = new(); + /// /// Defines IsCurrentBusy for the visual briefing feature. /// @@ -169,6 +172,16 @@ public partial class VisualBriefingAssistant : MSGComponentBase await this.ResumeSelectedBuildAsync(); } + /// + /// Defines OnParametersSetAsync for the visual briefing feature. + /// + protected override async Task OnParametersSetAsync() + { + // Configure the spellchecking for the user input: + this.SettingsManager.InjectSpellchecking(USER_INPUT_ATTRIBUTES); + await base.OnParametersSetAsync(); + } + /// /// Defines DisposeResources for the visual briefing feature. /// @@ -234,7 +247,12 @@ public partial class VisualBriefingAssistant : MSGComponentBase } if (triggeredEvent is Event.CONFIGURATION_CHANGED) + { + // The spellchecking setting might have changed. Since this page is not re-parameterized + // while the user stays on it, we have to read the setting again here: + this.SettingsManager.InjectSpellchecking(USER_INPUT_ATTRIBUTES); this.StateHasChanged(); + } await base.ProcessIncomingMessage(sendingComponent, triggeredEvent, data); }