diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index 6002af5822f..91eaeb1b231 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@ - 9.4.3-beta02 + 9.4.3-beta03 diff --git a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs index e39b44e3e03..7e8be6d5e65 100644 --- a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs +++ b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs @@ -157,7 +157,7 @@ public override async Task TriggerFilter(string val) { _filterItems = [.. _filterItems.Take(DisplayCount.Value)]; } - StateHasChanged(); + await TriggerChange(val); } /// diff --git a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js index 7a3cf927171..6aaa4aee02e 100644 --- a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js +++ b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js @@ -68,8 +68,7 @@ export function init(id, invoke) { }, filterDuration); Input.composition(input, v => { - const useInput = input.getAttribute('data-bb-input') !== 'false'; - if (isPopover === false && useInput) { + if (isPopover === false) { el.classList.add('show'); } @@ -164,13 +163,14 @@ export function dispose(id) { Data.remove(id) if (ac) { - const { popover, input, menu } = ac; + const { popover, input } = ac; if (popover) { Popover.dispose(popover) if (input) { EventHandler.off(input, 'focus') } } + EventHandler.off(input, 'change'); EventHandler.off(input, 'keyup'); EventHandler.off(input, 'blur'); Input.dispose(input);