diff --git a/js/script.js b/js/script.js index f2fd6ae..bca179c 100644 --- a/js/script.js +++ b/js/script.js @@ -1669,8 +1669,10 @@ // 如果已经在编辑中,不重复进入 if (editingInput === element) return; - // 选中并立即进入编辑模式 - selectInput(element); + // 阻止事件冒泡,避免触发容器点击 + e.stopPropagation(); + + // 进入编辑模式(selectInput 已在 mousedown 中调用) startEdit(element); }); }