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

Feil: Native Select oppfører seg uønsket #3886

Closed
piofinn opened this issue May 14, 2024 · 1 comment · Fixed by #3903
Closed

Feil: Native Select oppfører seg uønsket #3886

piofinn opened this issue May 14, 2024 · 1 comment · Fixed by #3903
Labels
🐝 bug Noe er feil eller ikke som det skal

Comments

@piofinn
Copy link
Contributor

piofinn commented May 14, 2024

As is viser Native Select alltid første alternativ som en placeholder selv om det ikke nødvendigivs er det, noe som skaper trøbbel ved valg av verdi. Ser også ut som det kan skape feil error states.

Steg for å gjenskape

  1. Gå til '...'
  2. Klikk på '...'
  3. Scroll ned til '...'

Forventet oppførsel

Systeminformasjon

@piofinn piofinn added the 🐝 bug Noe er feil eller ikke som det skal label May 14, 2024
@ivarni
Copy link
Contributor

ivarni commented May 14, 2024

Løsning:

Dersom det ikke er sendt inn en placeholder så defaulter vi den til "Velg" slik at NativeSelect nå alltid har et placeholder option-element så lenge det ikke er satt en value.

Da blir APIet mer likt det til Select

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐝 bug Noe er feil eller ikke som det skal
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants