Response section expands if hidden when sending a request
This commit is contained in:
parent
99e57ba888
commit
d403bebfa0
1 changed files with 6 additions and 0 deletions
|
|
@ -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'
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue