Skip to content

Commit

Permalink
fix: Hacker0x01#4489 Disable weekNumber highlighting when no click ha…
Browse files Browse the repository at this point in the history
…ndler is assigned.
  • Loading branch information
yuki0410-dev committed Mar 17, 2024
1 parent 87a9835 commit 6fc6b3f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/week_number.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ export default class WeekNumber extends React.Component {
const weekNumberClasses = {
"react-datepicker__week-number": true,
"react-datepicker__week-number--clickable": !!onClick,
"react-datepicker__week-number--selected": isSameDay(
this.props.date,
this.props.selected,
),
"react-datepicker__week-number--selected":
!onClick && isSameDay(this.props.date, this.props.selected),
"react-datepicker__week-number--keyboard-selected":
this.isKeyboardSelected(),
};
Expand Down

0 comments on commit 6fc6b3f

Please sign in to comment.