Skip to content

Commit

Permalink
Fix scrolling issue when clicking on a link, #3
Browse files Browse the repository at this point in the history
  • Loading branch information
maryayi committed Feb 22, 2018
1 parent f9e4028 commit 00b4bc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion practice/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1 class="title">
</p>
<ul class="menu-list">
<li v-for="(api, index) in apis" :key="index" @click="toggleMenu(index)">
<a :class="{'is-active': activeMenu === index}">
<a :class="{'is-active': activeMenu === index}" href="#api-top">
<span class="tag is-info">{{ api.verb }}</span> {{ api.url }}
</a>
<ul v-if="activeMenu === index">
Expand All @@ -43,6 +43,7 @@ <h1 class="title">
</aside>
</div>
<div class="column" style="overflow-y: auto; height: 82vh">
<span id="api-top"></span>
<h1 class="title is-3">
<span class="tag is-info is-large">{{ currentAPI.verb }}</span>
{{ currentAPI.url }}
Expand Down

0 comments on commit 00b4bc8

Please sign in to comment.