diff --git a/src/BetterSelect.js b/src/BetterSelect.js index bb566a4..4358500 100644 --- a/src/BetterSelect.js +++ b/src/BetterSelect.js @@ -267,7 +267,7 @@ export class BetterSelect extends HTMLElement { /** @param {HTMLElement} option */ setOption(option) { - this.setValue(option.dataset.value, option.innerHTML) + this.setValue(option.dataset.value, option.innerText) } /**