mi6 / mi6/ic-ui-kit

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

Open
#2,035 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

## 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.

Contributor guide

Open the contributing guide

Research direction

Start in the Storybook playground and reproduce the issue by toggling the ic-radio-group orientation after initial render. Trace the TypeScript implementation for the orientation property and verify the component can switch between vertical and horizontal states without a page refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.