ic-ui-kit
ic-ui-kit copied to clipboard
[ic-radio-group] updating orientation after initial render doesn't work
Summary of the bug
When setting orientation on the radio group, it only updates to the correct orientation after a page refresh, when it should toggle the boolean value correctly.
🪜 How to reproduce
Tell us the steps to reproduce the problem:
- Go to storybook playground
- Toggle orientation
- See the error
🧐 Expected behaviour
Should be able to toggle between vertical and horizontal orientation without page refresh.
Might be fixed
This Stackblitz shows the issue. It will initially change the orientation from vertical to horizontal when the orientation is toggled, but it won't change the orientation back to vertical once it's horizontal. It's the same if you start out horizontal, it won't ever change to vertical.