Altinn / Altinn/app-frontend-react
The `Address` component is not simplified by default any longer
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 33
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
### Description of the bug
Previously (I would hope?), and according to the JsonSchema, the `simplified` property on an `Address` component is `true` by default. However, according to both the code in the component, and the observed behaviour when I test it out, you'll have to set `simplified: true` in order to actually see a simplified version.
### Steps To Reproduce
1. Open an app with an Address component
2. Test removing/setting the property via DevTools
### Additional Information
_No response_
Contributor guide
Research direction
Start at the Address component and its JsonSchema, comparing the declared default with the component’s observed default. Reproduce the issue by removing or setting simplified in DevTools; done means an Address renders simplified when simplified is omitted and explicit settings still behave as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100