Altinn / Altinn/app-lib-dotnet

Repeating group in group: Table disappears

Open
#350 1 comment 0 reactions 0 assignees View on GitHub
kind/bug
Dominant language
C#
Stars
8
Forks
27
Avg merge
1h 21m
Merged PRs (30d)
7

Description

### Description of the bug

This is a bit hard to explain, but here goes:
I have a repeating group inside a group. This repeating group has a Datepicker, and when a date is picked, the dataprocessor changes a separate shadowfield, which in turn adds a new line in a paragraph elsewhere on the page. Whenever this happens, the table showing previously selected dates disappears, and the open field in the repeating group shows the value from the first element in the table. After clicking "add new", the open field gets saved and added to the newly appeared table. the newly opened field in the repeating group will have the value of the second element in the table (which was chosen earlier), so i can just click "add new" again. For every time I add a new date to the repeating group, the table closes, and i have to click "add new" as many times as i have already added dates to get to a blank field.

My guess is that the layout changes when a new line is added to the paragraph. When this happens, the table disappears.

### Steps To Reproduce

Please contact me for examples if needed

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by obtaining the reporter's example and reproducing the nested repeating-group case with its Datepicker, shadowfield, dataprocessor, and paragraph update. Trace what happens when the paragraph gains a line; done means previously selected dates stay visible and a newly opened field is blank without repeated clicks on “add new”.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.