From 1088b5578aaf1c332dc9b9e51cc9be96c34fd11f Mon Sep 17 00:00:00 2001 From: Tony-ST0754 <6914529@qq.com> Date: Fri, 30 Oct 2026 11:54:09 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix(GoTop)=E7=94=B1=E6=89=BE=E7=88=B6?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=9B=B4=E6=94=B9=E4=B8=BA=E6=89=BE=E7=88=B6?= =?UTF-8?q?=E5=85=83=E7=B4=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix:getScrollElement方法中由找 parentNode 变更为找 parentElement,以防特殊情况 document 没有 scrollTo 方法导致第29行执行错误 --- src/BootstrapBlazor/Components/GoTop/GoTop.razor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/BootstrapBlazor/Components/GoTop/GoTop.razor.js b/src/BootstrapBlazor/Components/GoTop/GoTop.razor.js index 2051b455286..1e11d67c520 100644 --- a/src/BootstrapBlazor/Components/GoTop/GoTop.razor.js +++ b/src/BootstrapBlazor/Components/GoTop/GoTop.razor.js @@ -1,10 +1,12 @@ -import Data from "../../modules/data.js" +import Data from "../../modules/data.js" import EventHandler from "../../modules/event-handler.js" const getScrollElement = el => { let ele = el while (ele && ele.scrollHeight <= ele.clientHeight + 1) { - ele = ele.parentNode + // ele.parentNode 会继续找到 document,导致后续调用不存在的 document.scrollTo() 方法报错 + // 所以这里改为 parentElement,parentElement 到 html 就会返回 null,正确回退到 window + ele = ele.parentElement } return ele || window } From 291f56a05e86ebaf34207689792681e63d256ae6 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 30 Oct 2026 20:53:23 +0800 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/GoTop/GoTop.razor.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/BootstrapBlazor/Components/GoTop/GoTop.razor.js b/src/BootstrapBlazor/Components/GoTop/GoTop.razor.js index 1e11d67c520..2c45fcbb462 100644 --- a/src/BootstrapBlazor/Components/GoTop/GoTop.razor.js +++ b/src/BootstrapBlazor/Components/GoTop/GoTop.razor.js @@ -4,8 +4,6 @@ import EventHandler from "../../modules/event-handler.js" const getScrollElement = el => { let ele = el while (ele && ele.scrollHeight <= ele.clientHeight + 1) { - // ele.parentNode 会继续找到 document,导致后续调用不存在的 document.scrollTo() 方法报错 - // 所以这里改为 parentElement,parentElement 到 html 就会返回 null,正确回退到 window ele = ele.parentElement } return ele || window From f1b29721541bfc0435feb6e60a38b53892108d0b Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 30 Oct 2026 20:53:42 +0800 Subject: [PATCH 3/3] chore: bump version 11.1.0-rc.3.5 --- 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 3be134664f5..fc12a7fc886 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@  - 11.1.0-rc.3.4 + 11.1.0-rc.3.5