Fix scrollTop of undefined in CannedResponseList (#226)
This commit is contained in:
parent
aef3b04aa5
commit
8348f4adae
1 changed files with 1 additions and 2 deletions
|
@ -75,8 +75,7 @@ export default {
|
||||||
if (this.isEnter(e)) {
|
if (this.isEnter(e)) {
|
||||||
this.onKeyenter(this.cannedMessages[this.selectedIndex].content);
|
this.onKeyenter(this.cannedMessages[this.selectedIndex].content);
|
||||||
}
|
}
|
||||||
this.$el.querySelector('#canned-list').scrollTop =
|
this.$el.scrollTop = 34 * this.selectedIndex;
|
||||||
34 * this.selectedIndex;
|
|
||||||
},
|
},
|
||||||
onHover(index) {
|
onHover(index) {
|
||||||
this.selectedIndex = index;
|
this.selectedIndex = index;
|
||||||
|
|
Loading…
Reference in a new issue