-
Notifications
You must be signed in to change notification settings - Fork 337
fixed bug on scrollToOnSetSelectedDate #298
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
base: master
Are you sure you want to change the base?
fixed bug on scrollToOnSetSelectedDate #298
Conversation
The scroller's
What behavior are you trying get from it? |
So I have this configuration
I want to disabled |
check this... so I'm showing it by weekly. Swiping and clicking the arrows works fine but on selecting a date, it will show the date/s from other week. i'm also calling the function when selecting a date Upload.from.GitHub.for.iOS.MOV |
Try removing the prop
That constructs a new date of today on every render. The date might be the same, but it's a different object and the prop change detection may pick it up and use it. |
No luck. Still the same. |
Note the function signature for
Would you mind testing these proposed changes --
Line 306
Line 323
As you may have noticed, updating the prop |
karuru6225 fixed an issue with updating the state in You might want to try it out to see if it addresses this issue too. You can use the head of this repo by pointing directly to it in
To make sure it's grabbing the current code, I recommend clearing the npm cache before re-running |
Sorry, still not working. |
Any update for this? I'm also trying to set the |
And issue will be fix with scrollToOnSetSelectedDate={false} |
Any update ? |
@peacechen Setting
scrollToOnSetSelectedDate
tofalse
is not working on scrollable.