fix: 阻止输入框编辑时的事件冒泡
避免在编辑输入框时触发容器的点击事件
This commit is contained in:
@@ -1669,8 +1669,10 @@
|
||||
// 如果已经在编辑中,不重复进入
|
||||
if (editingInput === element) return;
|
||||
|
||||
// 选中并立即进入编辑模式
|
||||
selectInput(element);
|
||||
// 阻止事件冒泡,避免触发容器点击
|
||||
e.stopPropagation();
|
||||
|
||||
// 进入编辑模式(selectInput 已在 mousedown 中调用)
|
||||
startEdit(element);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user