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