Altinn / Altinn/app-frontend-react
Remember previously unchecked values for List component with checkboxes
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 33
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
### Description
When you bind a List component with checkboxes to a model and a value has been changed elsewhere, unchecking the list item will remove the model and checking it will add it back with values reset.
This means that you then lose values such as is modified on models from other components. A desire here is to preserve the value for the model that you "unchecked" earlier, so that it appears if you check the model again.
Checked a model and added a value from a repeating group
Unchecking the checkbox and checking it again (The surname is gone)
### Additional Information
_No response_
Contributor guide
Research direction
Start at the List component's checkbox handling and reproduce the described model-binding sequence: change a value elsewhere, uncheck the item, then check it again. Done means previously changed model values, such as the surname, are preserved after the item is unchecked and selected again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100