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:
류한경 2022-07-02 23:05:22 +09:00 committed by GitHub
parent 72d0bc2177
commit 5678464c57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {