Altinn / Altinn/app-frontend-react

Data model binding with `dataType` but not `field` renders empty component

Open
#3,427 0 comments 0 reactions 0 assignees View on GitHub
good-first-issue kind/bug
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description of the bug

https://digdir.slack.com/archives/C0760NPT2BE/p1749198260947279

![Image](https://github.com/user-attachments/assets/ff670dbd-1590-4763-a85b-e46f2be8d445)

This should show an error instead, noting that a data model binding is required.

### Steps To Reproduce

1. Add a data model binding (the newer object type) without a `field`, to an `Input` component
2. Observe the empty render

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the empty render in an Input component using a newer object-type data model binding with no field, then trace the Input component's data model binding handling. Done means the invalid binding renders an error stating that a data model binding is required, with a regression test covering this case.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.