mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
fix(components): [time-picker] Ignore key down if readonly (#8283)
* fix(components): [time-picker] Ignore key down if readonly * fix(components): [time-picker] Ignore key if readonly
This commit is contained in:
parent
72d0bc2177
commit
5678464c57
@ -576,6 +576,8 @@ const isValidValue = (value: DayOrDays) => {
|
||||
}
|
||||
|
||||
const handleKeydownInput = async (event: KeyboardEvent) => {
|
||||
if (props.readonly || pickerDisabled.value) return
|
||||
|
||||
const { code } = event
|
||||
emitKeydown(event)
|
||||
if (code === EVENT_CODE.esc) {
|
||||
|
Loading…
Reference in New Issue
Block a user