Altinn / Altinn/app-frontend-react

Add "preselectedOptionValue" property for Dropdown/Radiobuttton/Checkboxes etc.

Open
#1,828 2 comments 0 reactions 0 assignees View on GitHub
area/codelists kind/feature-request
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description

For many Apps, a dropdown with Country is used. It would be nice to have a way to preselect a country, without having to specify the index as some language differences might affect which index a country is at.

It would therefore be nice to have a property to these components stating which `AppOption.Value` should be preselected.

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the Dropdown, Radiobutton, and Checkbox components and tracing how they consume AppOption.Value. Define the scope across the named components, then verify that a preselected option can be chosen by value rather than index and that existing selection behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.