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 Jan 15, 2021. It is now read-only.
Initially I thought this was related to #94 and had added some comments to that ticket but after fixing my issue I found that these are unrelated. I have since deleted those comments as they aren't helpful there. The useful info from those comments:
First, in Picky.UNSAFE_componentWillReceiveProps, the assumption is made that if the props.value is the same between current and next props, then the set of props is equal. It doesn't consider that props.options may differ.
Second, in Picky.allSelected - again, only the value is considered.
I think that if we were to check both options and value in both cases this probably is probably fixed. This would mean passing an additional overrideOptions to Picky.allSelected.
Pull request incoming.
The text was updated successfully, but these errors were encountered:
If the number of options increases when rerendering but the number of
selected values stays the same, Picky should not report that all values
are selected. This change adds additional checks to see if the number
of options changes between rerenders and sets the state accordingly.
✅ Closes: #134
Version
4.4.2
Here's what went wrong:
Exactly as described in the title. An example of this: https://codesandbox.io/s/43mvlo01k0.
Initially I thought this was related to #94 and had added some comments to that ticket but after fixing my issue I found that these are unrelated. I have since deleted those comments as they aren't helpful there. The useful info from those comments:
Pull request incoming.
The text was updated successfully, but these errors were encountered: