Skip to content

Commit

Permalink
fix(select): select with pre-selected option doesn't float label #188
Browse files Browse the repository at this point in the history
closes #188
  • Loading branch information
stasson committed Jan 5, 2018
1 parent e45a8f0 commit f296d42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/select/mdc-menu-select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export default {
let optionValue = options[i].getAttribute('data-value') || options[i].textContent.trim()
if (this.value === optionValue) {
foundation.setSelectedIndex(i)
this.$set(this.labelClasses, 'mdc-select__label--float-above', true);
break;
}
}
Expand Down

0 comments on commit f296d42

Please sign in to comment.