diff --git a/ignite-template.js b/ignite-template.js index 75ae708..f7f8278 100644 --- a/ignite-template.js +++ b/ignite-template.js @@ -1337,6 +1337,12 @@ class IgniteTemplate { if (this.element.textContent != newValue.toString()) { this.element.textContent = newValue.toString(); } + } else if (this.element instanceof HTMLSelectElement) { + if (newValue == null || newValue == undefined || newValue == '') { + this.element.value = this.element.options[0].value; + } else if (this.element.value != newValue) { + this.element.value = newValue; + } } else { if (this.element.value != newValue) { this.element.value = newValue;