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

DatePicker v4.9: Flere problemer ved valg fra nedtrekksmenyer #2637

Closed
SimenRokaas opened this issue Oct 24, 2024 · 0 comments · Fixed by #2625
Closed

DatePicker v4.9: Flere problemer ved valg fra nedtrekksmenyer #2637

SimenRokaas opened this issue Oct 24, 2024 · 0 comments · Fixed by #2625
Assignees
Labels
kind/bug Something isn't working

Comments

@SimenRokaas
Copy link
Contributor

Description of the bug

Den ny DatePicker-komponenten som kom i 4.9 ser ut til å oppføre seg merkelig (testet i Chrome). Se videosnutt fra skjema brannaarsak i TT02. https://github.com/user-attachments/assets/1a87899c-da65-4bd3-a274-34d6fb69f413

Skjemaet er ikke endret, kun oppdatert til 4.9.

  1. År/måned: Klikk på pil (som er naturlig å gjøre i en nedtrekksmeny) fungerer ikke
  2. År: Hvorfor vises neste århundre ved klikk på 2024? Valgene er 2124, 2123...
  3. År/måned: Når man velger en verdi (år eller måned) så endres ikke valgt dato.
  4. Pilene på hver side fungerer ikke (ingenting skjer).

Steps To Reproduce

Start skjema som har DatePicker (f.eks. https://altinn.studio/repos/dsb/brannaarsak). Se at funksjonalitet er OK i 4.8 men ikke i 4.9.

Additional Information

No response

@SimenRokaas SimenRokaas added the kind/bug Something isn't working label Oct 24, 2024
@bjosttveit bjosttveit self-assigned this Oct 25, 2024
bjosttveit added a commit that referenced this issue Oct 25, 2024
bjosttveit added a commit that referenced this issue Oct 28, 2024
…ser to the old one (#2625)

* different approach to parsing and saving from dateinput

* improve formatting display

* make locales work with pattern-format

* fixes for #2637

* fix scrolling logic for the case where there are no scroll bars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Status: Done
2 participants