Starting date changed when scrolling
See original GitHub issueHello. I really need your help. I’m trying to add scrolling but the starting date has changed. If using arrows, it works fine.
Here’s my code:
<CalendarStrip
ref={calendarStripRef}
scrollable
scrollerPaging
showMonth={false}
styleWeekend={false}
useIsoWeekday={false}
startingDate={dates[0]}
style={{ height: 100 }}
selectedDate={new Date()}
scrollToOnSetSelectedDate={false}
dayComponent={dayComponent}
iconContainer={{
alignItems: 'center',
justifyContent: 'center',
width: 20,
}}
iconLeft='angle-left'
iconRight='angle-right'
onWeekChanged={onWeekChanged}
/>
https://user-images.githubusercontent.com/4033035/106474459-e8bb3680-64df-11eb-8022-b91ab686526e.MP4
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Scrolling to insert dates - Microsoft Community
I have a new PC with new Excel. I tried to insert a date then scroll down to show sequential dates (23.10. then...
Read more >Preventing Scroll Change on Change of Project Start/End Date
As the timeline gets updated due to data source change, the scrollbar may move back and forth and it appears like flickering. In...
Read more >When editing a calender date through my smartphone I am ...
When I edit a date in google calender app through my smartphone I am unable to scroll downwards anymore to change e.g. the...
Read more >Excel Select Date With Scroll Bar - Contextures
In this example, the Scroll Bar will change the end date in a summary report, so you can scroll through the months, and...
Read more >Scroll to current date when opening md-calender
Anyway, the problem is due to the md-datepicker not being properly intialized, there could be a number of reasons for that, my solution...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@rjuevesano Would you mind submitting a PR?
Your modification should be able to be simplified as such:
Please validate that also works. Would prefer the simpler code in the PR.
2.2.2 has been published with @rjuevesano 's fix