mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
fix(components): [date-picker] fix type of year disabled failure (#8568)
* fix(components): [date-picker] fix date-picker's type of year disabled failure closed #8554 * fix(components): [date-picker] fix type of year disabled failure fix date-picker's type of year disabled failure closed #8554 Co-authored-by: guowanzi <8750640+guowanzi@user.noreply.gitee.com>
This commit is contained in:
parent
59392fa194
commit
26cc00480b
@ -90,7 +90,7 @@ const handleYearTableClick = (event: MouseEvent | KeyboardEvent) => {
|
||||
const clickTarget = event.target as HTMLDivElement
|
||||
const target = clickTarget.closest('td')
|
||||
if (target) {
|
||||
if (hasClass((target as any).parentNode, 'disabled')) return
|
||||
if (hasClass(target, 'disabled')) return
|
||||
const year = target.textContent || target.innerText
|
||||
emit('pick', Number(year))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user