From d403bebfa02eaad0ee909cc1eae294a9a871b0db Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 22 Aug 2019 14:35:14 +0530 Subject: [PATCH 1/2] 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' }) From 819e8bfecf7800eac7eb700d2214c7fe3925c955 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 22 Aug 2019 15:15:57 +0530 Subject: [PATCH 2/2] Removed the unwanted logging --- script.js | 1 - 1 file changed, 1 deletion(-) diff --git a/script.js b/script.js index 6f0854364..3e7b747b1 100644 --- a/script.js +++ b/script.js @@ -73,7 +73,6 @@ const app = new Vue({ }, 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') }