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

Fix issue with editing scroller style on update #287

Merged
merged 1 commit into from
May 6, 2021

Conversation

mgmolisani
Copy link
Contributor

While I think there are some bigger issues behind how the styles for the calendar are being set (derived state and whatnot), this fixes an issue where, on update of scroller style props, the scroller could render null as height was undefined. Root cause seems to be not passing the right argument to the updateLayout helper causing the helper to not create required styles. I observed this when using a parent's onLayout to dynamically set the width of the calendar causing the update after the callback was triggered.

Side note: I want to urge the use of TS in this project if ever possible as this bug could have been totally avoided with strong types.

@peacechen
Copy link
Collaborator

Thanks @mgmolisani for fixing this. I agree, typing would be beneficial. The project was not originally set up for that and no one has had time to refactor. It would be much appreciated if you or anyone else has the resources to take that on.

@peacechen peacechen merged commit 72daa34 into stephy:master May 6, 2021
@peacechen
Copy link
Collaborator

Published in 7.1.2

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

Successfully merging this pull request may close these issues.

2 participants