From 1436bd406ba92ef694005dfbb3e3cd1f0925cfcd Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 2 Mar 2025 09:35:01 +0800 Subject: [PATCH 1/5] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/AutoComplete/AutoComplete.razor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js index 7a3cf927171..a1d8849c6d6 100644 --- a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js +++ b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js @@ -164,7 +164,7 @@ 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) { From 52df4f4da23d41e5fe4f4e8d84573ff9b1f456b2 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 2 Mar 2025 09:35:49 +0800 Subject: [PATCH 2/5] =?UTF-8?q?refactor:=20=E7=B2=BE=E7=AE=80=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/AutoComplete/AutoComplete.razor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js index a1d8849c6d6..23692d25601 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'); } From 23272aa0301f2b6ddd2b09e403990477a74654d8 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 2 Mar 2025 09:40:04 +0800 Subject: [PATCH 3/5] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=20change=20?= =?UTF-8?q?=E9=94=80=E6=AF=81=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/AutoComplete/AutoComplete.razor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js index 23692d25601..6aaa4aee02e 100644 --- a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js +++ b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js @@ -170,6 +170,7 @@ export function dispose(id) { EventHandler.off(input, 'focus') } } + EventHandler.off(input, 'change'); EventHandler.off(input, 'keyup'); EventHandler.off(input, 'blur'); Input.dispose(input); From 85880cb77a575f4aba703cff2b5ed0cb8cdb5ce2 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 2 Mar 2025 09:42:32 +0800 Subject: [PATCH 4/5] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=20Value=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/AutoComplete/AutoComplete.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /// From 2952aca6b1935eaafbe711a936cae70020337f98 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 2 Mar 2025 09:43:09 +0800 Subject: [PATCH 5/5] chore: bump version 9.4.3-beta03 --- src/BootstrapBlazor/BootstrapBlazor.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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