bug fixes
This commit is contained in:
parent
eeed13af3e
commit
d46e5656a3
2
components/dist/select.js
vendored
2
components/dist/select.js
vendored
@ -201,7 +201,7 @@ customElements.define('sm-select', class extends HTMLElement {
|
|||||||
|
|
||||||
reset(fire = true) {
|
reset(fire = true) {
|
||||||
if (this.availableOptions[0] && this.previousOption !== this.availableOptions[0]) {
|
if (this.availableOptions[0] && this.previousOption !== this.availableOptions[0]) {
|
||||||
const selectedOption = this.availableOptions.find(option => option.getAttribute('value') === this.defaultSelected) || this.availableOptions[0];
|
const selectedOption = this.availableOptions.find(option => option.hasAttribute('selected')) || this.availableOptions[0];
|
||||||
this.value = selectedOption.getAttribute('value')
|
this.value = selectedOption.getAttribute('value')
|
||||||
if (fire) {
|
if (fire) {
|
||||||
this.fireEvent()
|
this.fireEvent()
|
||||||
|
|||||||
2
components/dist/select.min.js
vendored
2
components/dist/select.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user