-
-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
So,
I have a component in which I use the scrollTo function. This component has a main div with a dynamic id, and inside it has a div with a fixed id
<div :id="`document_${_uid}`">
<div id="page-container">
This component gets instanced twice, as it is behind a b-tabs (its in two tabs). Im calling the $scrollTo function with the following options:
const scrollOptions = {
container: `#document_${this._uid} #page-container`,
offset: -20,
};
Weirdly, the scrolling function works fine for the first instance, but not when I change the tab and try scrolling on the second. Any idea why this is happening?
Metadata
Metadata
Assignees
Labels
No labels