-
Notifications
You must be signed in to change notification settings - Fork 2
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
LSD v0.1.0-beta - Date range picker #63
Conversation
5a92c63
to
ce2392a
Compare
|
This comes from an external hook we're using, I don't think we're doing anything on our side. I'll try to fix this though |
f875ba8
to
1200b33
Compare
const { onClick, onKeyDown, onMouseEnter, tabIndex } = useDay({ | ||
date, | ||
focusedDate, | ||
isDateFocused, | ||
isDateSelected, | ||
isDateHovered, | ||
isDateBlocked, | ||
isFirstOrLastSelectedDate, | ||
onDateFocus, | ||
onDateSelect, | ||
onDateHover, | ||
dayRef, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the requests from @amirhouieh was:
Is there a specific logic/routine implemented upon hover? the cursor seems shaking and unstable when hovering over the day numbers ?
I believe the culprit was this useDay hook - it adds some hovering logic as we can see from its source code. I removed this hook because as far as I can tell the hovering logic is not needed. If we do need it sometime in the future, it should be easy to implement it ourselves.
bf479a1
to
32d95a4
Compare
Implements a date range picker component.
Figma link
Based on Jinho's work from this PR.