Chip does not behave as controlled component
lambduli opened this issue · 5 comments
Hello everyone,
If Chipset is provided with selectedChipIds
Array and user clicks on selected chip it loses its checkmark even though it is specified inside the Array and Chip iself has selected
set.
I figured Chipset holds this array and modifies it as its state even though it probably should be only taking props from higher context.
Is there a way to prevent said behaviour? Unfortunately my component is functional component and I cannot simply re-render it - so it is kinda out of the question.
Thank you very much.
@moog16 Thanks but my issue was question: Is there a way around it?
I' ve definitely seen that issue. But it does not propose some mean-time fix or workaround.
no problem! LMK if you have any other questions.