From d403bebfa02eaad0ee909cc1eae294a9a871b0db Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 22 Aug 2019 14:35:14 +0530 Subject: [PATCH] Response section expands if hidden when sending a request --- script.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script.js b/script.js index ec81d1c22..6f0854364 100644 --- a/script.js +++ b/script.js @@ -72,6 +72,12 @@ const app = new Vue({ document.getElementsByClassName(el)[0].classList.toggle('hidden') }, sendRequest() { + // Expand the Response section incase it is hidden + console.log(this.$refs.response.classList) + if (this.$refs.response.classList.contains('hidden')) { + this.$refs.response.classList.toggle('hidden') + } + this.$refs.response.scrollIntoView({ behavior: 'smooth' })