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

feat(ffe-form-react): standardize selectedValue in radio components #2447

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

pethel
Copy link
Contributor

@pethel pethel commented Dec 17, 2024

Provar standardisera typerna på radio komponenterna da vi har en bug der typerna ikke sammensvarer. Jag synes vi kan begrensa oss til strings(i onChange så får man ett vanlig event bare med stringen på e.target.value), null og undefined.

fixes: #2442

@pethel pethel marked this pull request as ready for review December 17, 2024 08:39
@pethel pethel requested a review from a team as a code owner December 17, 2024 08:39
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2447.westeurope.2.azurestaticapps.net

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2447.westeurope.2.azurestaticapps.net

BREAKING CHANGE: limit selectedValue in radio komponents
to string, null, undefined.
<RadioBlock
{...inputProps}
label="Ja"
value="yes"
// @ts-ignore
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Her har vi buggen også i dokumentasjonen

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2447.westeurope.2.azurestaticapps.net

@pethel pethel merged commit a7dcb39 into develop Dec 17, 2024
3 checks passed
@pethel pethel deleted the develop_fix-input branch December 17, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inputProps fra RadioButtonInputGroup til RadioBlock kompilerer ikke
2 participants