ThatOpen / engine_ui-components

Collection of web components meant to be used, but not limited to, BIM applications.
MIT License
9 stars 12 forks source link

Dropdown component does not set initial value #24

Closed K1vs closed 1 month ago

K1vs commented 2 months ago

Describe the bug 📝

I expect, dropdown should have initial value if it has option with "checked" attribute.

Reproduction ▶️

No response

Steps to reproduce 🔢

  1. Open demo page https://thatopen.github.io/engine_ui-components/examples/Dropdown/ image
  2. Actual - Dropdown has empty selected value; Expected - Dropdown has IfcWindow value (because this option marked as checked) image
  3. Try open and close dropdown - after this dropdown works as expected. image

System Info 💻

System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700K
    Memory: 15.84 GB / 31.79 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.5 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.5.1 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (126.0.2592.68)
    Internet Explorer: 11.0.22621.3527

Used Package Manager 📦

npm

Error Trace/Logs 📃

No response

Validations ✅

HoyosJuan commented 1 month ago

Fixed on @thatopen/ui@2.1.1! Closing issue.