From daa491cd176d425246778c6d3a74bcd7c8094b55 Mon Sep 17 00:00:00 2001 From: Igor Guastalla de Lima Date: Fri, 30 Aug 2019 09:36:16 -0300 Subject: [PATCH] Change again the way of showing by adding and clearing the className --- pages/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/index.vue b/pages/index.vue index 36e21f106..4ad32d04e 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -533,9 +533,10 @@ }, observeRequestButton() { const requestElement = this.$refs.request.$el; + const sendButton = this.$refs.sendButton; const observer = new IntersectionObserver((entries, observer) => { entries.forEach(entry => { - this.$refs.sendButton.classList.toggle('show'); + sendButton.className = entry.isIntersecting ? '' : 'show'; }); }, { threshold: 1 });