mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-16 22:10:27 +00:00
parent
e084bdc9ee
commit
fba6cf5039
1 changed files with 6 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue