dnbexperience / eufemia

DNB Design System
https://eufemia.dnb.no
Other
50 stars 30 forks source link

bug(Field.Selection): clear option does not have a consistent behaviour #2980

Closed langz closed 7 months ago

langz commented 9 months ago

🐛 Bug Report

When clicking the "Fjern valgt verdi"-option in the following example it behaves differently from clicking it once, to twice:

https://github.com/dnbexperience/eufemia/assets/1359205/836bad1d-c95c-4371-a197-e83360bff908

First time clicking it, the dropdown/selection displays "Valgmeny":

Screenshot 2023-12-06 at 12 36 26

The second time clicking it, the dropdown/selection displays "Fjern valgt verdi":

Screenshot 2023-12-06 at 12 36 35

To Reproduce

This CSB is using main branch as of today, 06.12.2023. https://codesandbox.io/p/sandbox/eufemia-starter-forked-4ct6wh?file=%2Fsrc%2FApp.tsx

joakbjerk commented 7 months ago

will be solved by https://github.com/dnbexperience/eufemia/pull/3327