os-js / osjs-gui

OS.js GUI Module

Home Page:https://manual.os-js.org/v3/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom `<select>` element implementation (`DropdownField`)

andersevenrud opened this issue · comments

Sine the standard <select> DOM element has browser specific behavior and styling, it would be better to have a custom implementation.

  • Use <input type="text" /> as base
  • Dropdown with options
  • Keybindings for navigating options
  • Blur event to make dropdown disappear when no longer focused