md-slect: key navigation ignores mdSubheader onEnter (#592) (#623)

This commit is contained in:
Kevin Pilard 2017-05-08 00:50:00 +02:00 committed by Marcos Moura
parent e084bdc9ee
commit fba6cf5039

View file

@ -50,8 +50,13 @@
},
fireClick() {
if (this.highlighted > 0) {
this.$children[0].$children[this.highlighted - 1].$el.click();
this.getOptions()[this.highlighted - 1].$el.click();
}
},
getOptions() {
return this.$children[0].$children.filter((child) => {
return child.$el.classList.contains('md-option');
});
}
},
mounted() {