Open GCHQ-Developer-847 opened 1 week ago
Think this is only a storybook issue - can be resolved by using the useArgs hook
This has been implemented in checkbox playground to keep the checked prop in sync when user interacts with the actual checkbox
Summary of the bug
When the multi-select has options selected, if the values of any props are changed, the selected options are cleared.
🪜 How to reproduce
Tell us the steps to reproduce the problem:
🧐 Expected behaviour
The selected options should stay when any props are changed.
Additional info
This is quite a serious bug as there will be many cases when the developer may need to change props after the multi-select has already loaded (validation status in particular).