Response section expands if hidden when sending a request
This commit is contained in:
@@ -72,6 +72,12 @@ const app = new Vue({
|
|||||||
document.getElementsByClassName(el)[0].classList.toggle('hidden')
|
document.getElementsByClassName(el)[0].classList.toggle('hidden')
|
||||||
},
|
},
|
||||||
sendRequest() {
|
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({
|
this.$refs.response.scrollIntoView({
|
||||||
behavior: 'smooth'
|
behavior: 'smooth'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user