diff --git a/package.json b/package.json index b2de09e..a1be36b 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,6 @@ "browser": "src/BetterSelect.js", "type": "module", "license": "MIT", - "version": "1.4.0", + "version": "1.4.1", "url": "https://darkwiiplayer.github.io/BetterSelect/" } diff --git a/src/BetterSelect.js b/src/BetterSelect.js index c0afda6..c3bfa34 100644 --- a/src/BetterSelect.js +++ b/src/BetterSelect.js @@ -377,7 +377,7 @@ export class BetterSelect extends HTMLElement { set value(value) { for (const option of this.options) { if (option.value === String(value)) { - this.setOption(option) + this.setValue(option.value, option.innerText) return } }