Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
110 stars 72 forks source link

Setting and then removing a preselected option results in an error #12559

Closed HauklandJ closed 1 month ago

HauklandJ commented 3 months ago

Description of the bug

If you set a default chosen radio button and then regret it, you need to know a workaround in order to get rid of the error that occurs.

Steps To Reproduce

Additional Information

No response

ErlingHauan commented 2 months ago

~Related: the preview is stuck spinning when setting "Forhåndsvalgt radioknapp" to 1, even when there are 2 radio buttons.~ Nevermind, i was on frontend v3, this does not apply to v4.

https://github.com/Altinn/altinn-studio/assets/148075168/3c487c97-61e1-4fbd-ab34-8f3be45d9656

nkylstad commented 1 month ago

Setting, changing, and then removing preselectedOptionIndex now works as expected! Tested OK in dev.