Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Range Calendar] Click to select start date shouldn't highlight the next month, as if hovered. #642

Open
BionBit opened this issue Dec 2, 2019 · 0 comments

Comments

@BionBit
Copy link

BionBit commented Dec 2, 2019

Behavior can be observed here,
https://react-component.github.io/calendar/examples/antd-range-calendar.html

STR:

  1. Click to select a start date
  2. Notice that the next month gets highlighted as if hovered on

Proposed fix in 'DateTBody' (tested locally),

- } else if ((endValue === null || endValue === undefined) &&
- current.isAfter(startValue, 'day')) {
- cls += ` ${inRangeClass}`;
} else if (current.isAfter(startValue, 'day') &&
+ endValue &&
current.isBefore(endValue, 'day')) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant