Altinn / Altinn/app-frontend-react

Edit-button in summary does not navigate to correct item in repeating group

Open
#3,751 0 comments 0 reactions 0 assignees View on GitHub
area/summary kind/bug status/triage
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description of the bug

The summary component (Summary2) does not navigate to the correct item when the "Edit"-button is clicked. Instead of jumping to the specific item within the repeating group that needs editing, it only navigates to the overview page displaying all items in the repeating group.

The repeating group has edit: "openByDefault": "first". If I remove this it manages to jump to the correct item.

### Steps To Reproduce

https://github.com/user-attachments/assets/cffdfa83-e36c-4dc7-88e4-0c4fe6b99d0d

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Summary2 Edit-button behavior with a repeating group whose edit setting is openByDefault: "first", using the linked reproduction. Trace how the button selects the item and how the repeating group opens it; done means the button navigates to the specific item rather than the overview, while preserving the behavior when openByDefault is removed.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.