Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from May 6, 2024

Conversation

thetaPC
Copy link
Contributor

@thetaPC thetaPC commented May 3, 2024

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

Copy link

vercel bot commented May 3, 2024

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
Copy link
Contributor

@sean-perkins sean-perkins left a comment

Choose a reason for hiding this comment

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

Minor docs wording adjustment.

core/src/components/radio/radio.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@sean-perkins sean-perkins left a comment

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
@thetaPC thetaPC added this pull request to the merge queue May 6, 2024
Merged via the queue into main with commit 7ea14ae May 6, 2024
50 checks passed
@thetaPC thetaPC deleted the issue-29442 branch May 6, 2024 18:42
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