Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ønsker å legge til propertyen value slik at componnten vise tom stren… #2873

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/frontend/Felles/Datovelger/Datovelger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const Datovelger: FC<{
label={label}
placeholder={placeholder}
{...inputProps}
value={formatertDato || ''}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regner med du har testet at dette funker? Blir jo en slags "controller"/"uncontrolled" håndtering her med at Datepicker er default uncontrolled, men vi setter value direkte.

Vil gjerne at du tester at det går an å skrive datoverdi med tastaturet - og at det ikke bare "henger"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Det tenkte jeg ikke på. Når jeg tester fungerer det ikke å skrive dato, uten at det blir krøll 👎

error={feil}
size={'medium'}
/>
Expand Down