From 8348f4adae001f914300e9c73d8fb24e1f67f818 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Wed, 20 Nov 2019 15:40:34 +0530 Subject: [PATCH] Fix scrollTop of undefined in CannedResponseList (#226) --- .../components/widgets/conversation/CannedResponse.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/CannedResponse.vue b/app/javascript/dashboard/components/widgets/conversation/CannedResponse.vue index 32fa2a70e..33fbadf67 100644 --- a/app/javascript/dashboard/components/widgets/conversation/CannedResponse.vue +++ b/app/javascript/dashboard/components/widgets/conversation/CannedResponse.vue @@ -75,8 +75,7 @@ export default { if (this.isEnter(e)) { this.onKeyenter(this.cannedMessages[this.selectedIndex].content); } - this.$el.querySelector('#canned-list').scrollTop = - 34 * this.selectedIndex; + this.$el.scrollTop = 34 * this.selectedIndex; }, onHover(index) { this.selectedIndex = index;