Fixed issue with undefined el
This commit is contained in:
parent
e34a90314f
commit
4f7052f589
|
@ -357,7 +357,8 @@ export default {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
self.bindEvents()
|
self.bindEvents()
|
||||||
if (self.tracks.length > 0) {
|
if (self.tracks.length > 0) {
|
||||||
var topPos = document.getElementById(`queue-item-${v}`).offsetTop;
|
let el = document.getElementById(`queue-item-${v}`);
|
||||||
|
var topPos = el.offsetTop;
|
||||||
document.getElementById('queue').scrollTop = topPos-10;
|
document.getElementById('queue').scrollTop = topPos-10;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue