You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2019. It is now read-only.
I realized that when the state changes such that the number of children is dynamic (based on state). The component uses this.props.children.length to measure pageWidthPerCent value. So, it uses the initial number of children and the page width math goes wrong.
Have you considered putting children length in state and update it at right times to calculate the page width.
If you are interested, I can pitch in with a PR.
Thanks
The text was updated successfully, but these errors were encountered:
Hey,
I realized that when the state changes such that the number of children is dynamic (based on state). The component uses this.props.children.length to measure pageWidthPerCent value. So, it uses the initial number of children and the page width math goes wrong.
Have you considered putting children length in state and update it at right times to calculate the page width.
If you are interested, I can pitch in with a PR.
Thanks
The text was updated successfully, but these errors were encountered: