From 1bf89ec64c8e6e0c37eb0fb6d50013959a11ef79 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 18 Dec 2024 15:38:11 +0100 Subject: [PATCH] Set initial form value to "" --- src/BetterSelect.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BetterSelect.js b/src/BetterSelect.js index 79f7969..3b543f0 100644 --- a/src/BetterSelect.js +++ b/src/BetterSelect.js @@ -144,6 +144,7 @@ export class BetterSelect extends HTMLElement { ` this.shadowRoot.adoptedStyleSheets = [BetterSelect.styleSheet] + this.#internals.setFormValue("", "") this.tabIndex = 0