bug: 修复部分情况下提交误触发提交问题

This commit is contained in:
gary.fu
2025-07-09 17:09:30 +08:00
parent 41288521a6
commit e5a3463aae

View File

@@ -115,6 +115,9 @@ onMounted(() => {
}
if (props.submitByEnter) {
removeEnterFn.value = onKeyStroke('Enter', (event) => {
if (event?.target?.tagName === 'TEXTAREA' || event?.target?.isContentEditable) {
return
}
event?.stopImmediatePropagation()
if (form.value) {
console.info('=========================submitByEnter', formDiv.value)