Skip to content

Commit

Permalink
fix(components): [date-picker] fix type of year disabled failure (#8568)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
ayuan-gy and ayuan-gy committed Jul 2, 2022
1 parent 59392fa commit 26cc004
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 26cc004

Please sign in to comment.