ic-ui-kit icon indicating copy to clipboard operation
ic-ui-kit copied to clipboard

[ic-radio-group] updating orientation after initial render doesn't work

Open GCHQ-Developer-530 opened this issue 1 year ago • 1 comments

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:

  1. Go to storybook playground
  2. Toggle orientation
  3. See the error

🧐 Expected behaviour

Should be able to toggle between vertical and horizontal orientation without page refresh.

GCHQ-Developer-530 avatar Jun 19 '24 13:06 GCHQ-Developer-530

Might be fixed

MI6-255 avatar Aug 14 '24 09:08 MI6-255

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.

GCHQ-Developer-530 avatar Jun 12 '25 09:06 GCHQ-Developer-530