I am using the vueToScroll library to scroll to a specific id element created dynamically.
<button ref="replyBtn"
v-scroll-to="{
el: '#goToReply101',
duration: 800,
easing: 'easing',
offset: -50,
force: true
}" :id="this.goToReply">Scroll to the div
</button>
The script below works as expected, but if I pass the value of the element dynamically does not work:
<button ref="replyBtn"
v-scroll-to="{
el: this.replyScroll//it returns '#gotToReply101'
duration: 800,
easing: 'easing',
offset: -50,
force: true
}" :id="this.goToReply">Scroll to the div
</button>
The value of the this.replyScroll variable changes according to the value of the clicked id.