Response section expands if hidden when sending a request

This commit is contained in:
Andrew Bastin
2019-08-22 14:35:14 +05:30
parent 99e57ba888
commit d403bebfa0

View File

@@ -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'
})