Altinn / Altinn/app-frontend-react

Validation timing: saveWhileTyping supported for boolean

Open
#3,748 0 comments 0 reactions 0 assignees View on GitHub
kind/feature-request org/brg status/for-consideration status/triage
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description

In the context of enhanced UX: it is desired to validate an intput field as soon as the user has left the field, before hitting a navigation button (triggers the validateOnNext-property). This was possible in frontend v. 3 through the 'saveWhileTyping'-property adjusting to boolean besides number.

Example: input field which stores a number. Immediate validation may feel aggressive, while validateOnNext unnecessarily delays the response time.

Image

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the saveWhileTyping and validateOnNext properties in the frontend code and their validation flow. Confirm the expected behavior for a boolean saveWhileTyping value, including validation when the user leaves an input before navigation, and add or update the relevant tests if they are found.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
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.