mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-12 12:25:22 +08:00
fix(components): [date-picker] fix readonly picker can be triggered (#9931)
fix(components): [date-picker] fix readonly pick can be triggered
This commit is contained in:
parent
c5799df0e4
commit
cc8bfa128c
@ -518,6 +518,7 @@ const onMouseLeave = () => {
|
||||
showClose.value = false
|
||||
}
|
||||
const onTouchStartInput = (event: TouchEvent) => {
|
||||
if (props.readonly || pickerDisabled.value) return
|
||||
if (
|
||||
(event.touches[0].target as HTMLElement)?.tagName !== 'INPUT' ||
|
||||
refInput.value.includes(document.activeElement as HTMLInputElement)
|
||||
|
Loading…
Reference in New Issue
Block a user