Skip to content

fix(radio): persist checked state when items are updated in radio-group - #29457

Merged
thetaPC merged 3 commits into
mainfrom
issue-29442
May 6, 2024
Merged

fix(radio): persist checked state when items are updated in radio-group#29457
thetaPC merged 3 commits into
mainfrom
issue-29442

Conversation

@thetaPC

@thetaPC thetaPC commented May 3, 2024

Copy link
Copy Markdown
Contributor

Issue number: resolves #29442


What is the current behavior?

The state does not stay consistent when the data used to render the radios are updated.

What is the new behavior?

  • The state updates after the component loads, this allows the value to be set after the radio is rendered.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 8.1.1-dev.11714760012.1eab947e

@vercel

vercel Bot commented May 3, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 4:04pm

@thetaPC
thetaPC marked this pull request as ready for review May 3, 2024 19:59
@thetaPC
thetaPC requested a review from a team as a code owner May 3, 2024 19:59
@thetaPC
thetaPC requested a review from sean-perkins May 3, 2024 19:59

@sean-perkins sean-perkins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor docs wording adjustment.

Comment thread core/src/components/radio/radio.tsx Outdated
Co-authored-by: Sean Perkins <13732623+sean-perkins@users.noreply.github.com>

@sean-perkins sean-perkins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work 👍

@sean-perkins sean-perkins changed the title refactor(radio): update state in componentDidLoad fix(radio): update state in componentDidLoad May 6, 2024
@thetaPC thetaPC changed the title fix(radio): update state in componentDidLoad fix(radio): persist checked state when items are updated May 6, 2024
@thetaPC thetaPC changed the title fix(radio): persist checked state when items are updated fix(radio): persist checked state when items are updated in radio-group May 6, 2024
@thetaPC
thetaPC enabled auto-merge May 6, 2024 17:18
@thetaPC
thetaPC disabled auto-merge May 6, 2024 17:19
@thetaPC
thetaPC enabled auto-merge May 6, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ion-radio does not keep checked-state after updating the underlaying object

3 participants