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
When using the react package, if you have state changes to the props being passed to SelectionArea, those changes are not recognized. For example, if you want to use a ref on the container prop, if that container changes, Viselect doesn't recognize these changes.
What is the current behavior?
Changing a prop to the SelectionArea results in those changes not being recognized.
Please provide the steps to reproduce and create a CodeSandbox.
That was on purpose since the core module doesn't support dynamic option updates. The preact/react component would have to destroy the instance and re-create it. In your case adding a key should do the job... Or what would you expect to happen? And what do you mean with a "ref on the container prop" exactly? (sorry, it's been a while with react for me)
What is the problem?
When using the react package, if you have state changes to the props being passed to
SelectionArea
, those changes are not recognized. For example, if you want to use a ref on the container prop, if that container changes, Viselect doesn't recognize these changes.What is the current behavior?
Changing a prop to the
SelectionArea
results in those changes not being recognized.Please provide the steps to reproduce and create a CodeSandbox.
CodeSandbox Link
What is the expected behavior?
Whenever you change a prop, @viselect/react should be updating to use those new props
Your environment:
The text was updated successfully, but these errors were encountered: