De-duplicate HTML for tab content, add way for tab to request scroll to top
This commit is contained in:
parent
a89306b3b8
commit
d2c9122720
2 changed files with 15 additions and 22 deletions
|
|
@ -72,7 +72,7 @@
|
|||
:page-class="'page-item'"
|
||||
:active-class="'uk-active'"
|
||||
:disabled-class="'uk-disabled'"
|
||||
:click-handler="scrollToTop()"
|
||||
:click-handler="scrollToTop"
|
||||
>
|
||||
</Paginate>
|
||||
</div>
|
||||
|
|
@ -135,10 +135,7 @@ export default {
|
|||
|
||||
methods: {
|
||||
scrollToTop() {
|
||||
const el = document.querySelector("#container-left");
|
||||
if (el) {
|
||||
el.scrollTop = 0;
|
||||
}
|
||||
this.$emit("scrollTop");
|
||||
},
|
||||
visibilityChanged(isVisible) {
|
||||
if (isVisible) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue