diff --git a/package.json b/package.json index 3e53e3e..ebf5f4a 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,6 @@ "browser": "src/BetterSelect.js", "type": "module", "license": "MIT", - "version": "1.2.0", + "version": "1.2.1", "url": "https://darkwiiplayer.github.io/BetterSelect/" } diff --git a/src/BetterSelect.js b/src/BetterSelect.js index 43ba288..6400c85 100644 --- a/src/BetterSelect.js +++ b/src/BetterSelect.js @@ -324,7 +324,7 @@ export class BetterSelect extends HTMLElement { get value() { return this.#value.value } set value(value) { for (const option of this.options) { - if (option.value === value) { + if (option.value === String(value)) { this.setOption(option) return }