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

Conversation

gunnsteingarmo
Copy link
Contributor

…g når den blir tilbakestilt.

Hvorfor er denne endringen nødvendig? ✨

Datofelt viste gammel satt dato selv når den ble tilbakestilt.

Favro

https://favro.com/organization/98c34fb974ce445eac854de0/a64c6aad9b0d61ef6c0290bd?card=NAV-22101

@@ -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 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants