From 910365f8b81244aba6f8799f526f84dfcd1bb77c Mon Sep 17 00:00:00 2001 From: xiaoshi <115949669+xiaoshi930@users.noreply.github.com> Date: Fri, 28 Nov 2025 23:20:04 +0800 Subject: [PATCH] Update xiaoshi-device-ha-info-card.js --- xiaoshi-device-ha-info-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xiaoshi-device-ha-info-card.js b/xiaoshi-device-ha-info-card.js index c8759e3..7b7fc73 100644 --- a/xiaoshi-device-ha-info-card.js +++ b/xiaoshi-device-ha-info-card.js @@ -983,9 +983,9 @@ export class XiaoshiHaInfoCard extends LitElement { } _handleConfirmUpdate(update, event) { - this._handleClick(); event.stopPropagation(); // 阻止事件冒泡 event.preventDefault(); // 阻止默认行为 + this._handleClick(); // 弹出确认对话框 const confirmed = confirm(`确认要更新 ${update.name} 吗?\n当前版本: ${update.current_version}\n最新版本: ${update.latest_version}`);