diff --git a/src/BetterSelect.js b/src/BetterSelect.js index 4803564..bb566a4 100644 --- a/src/BetterSelect.js +++ b/src/BetterSelect.js @@ -298,6 +298,9 @@ export class BetterSelect extends HTMLElement { this.list.replaceChildren() for (const option of this.options) { this.list.append(f`
  • ${option.innerText}
  • `) + if (option.selected) { + this.value = option.value + } } } }