mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 13:59:48 +00:00
Fixed an issue when typing the next prompt & data source options where open
This commit is contained in:
parent
c6ab1b1b7d
commit
45cf77c1a7
@ -331,6 +331,9 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
|
|||||||
|
|
||||||
private async Task InputKeyEvent(KeyboardEventArgs keyEvent)
|
private async Task InputKeyEvent(KeyboardEventArgs keyEvent)
|
||||||
{
|
{
|
||||||
|
if(this.dataSourceSelectionComponent?.IsVisible ?? false)
|
||||||
|
this.dataSourceSelectionComponent.Hide();
|
||||||
|
|
||||||
this.hasUnsavedChanges = true;
|
this.hasUnsavedChanges = true;
|
||||||
var key = keyEvent.Code.ToLowerInvariant();
|
var key = keyEvent.Code.ToLowerInvariant();
|
||||||
|
|
||||||
|
@ -147,6 +147,14 @@ public partial class DataSourceSelection : ComponentBase, IMessageBusReceiver, I
|
|||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool IsVisible => this.showDataSourceSelection;
|
||||||
|
|
||||||
|
public void Hide()
|
||||||
|
{
|
||||||
|
this.showDataSourceSelection = false;
|
||||||
|
this.StateHasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
private async Task LoadAndApplyFilters()
|
private async Task LoadAndApplyFilters()
|
||||||
{
|
{
|
||||||
if(this.DataSourceOptions.DisableDataSources)
|
if(this.DataSourceOptions.DisableDataSources)
|
||||||
|
Loading…
Reference in New Issue
Block a user