I have a core-list that is inside a set of paper-tabs. I'm calling list.updateSize() as an async function when the tab is switched to. However, this is throwing the following error:
Uncaught TypeError: Cannot set property 'model' of undefined (core-list.html:701)
When investigating, I learned that both physicalIndex and virtualIndex that are being passed into _updateItemData are NaN. Doing a little more investigating, I learned that this is likely because this._virtualStart is also NaN.
At this point I got a bit lost trying to trace things back to a root cause since the only time _virtualStart is explicitly set is to 0 in the ready function.
The core-list in question is actually open source, so that might make things easier to investigate.
I have a
core-list
that is inside a set ofpaper-tabs
. I'm callinglist.updateSize()
as an async function when the tab is switched to. However, this is throwing the following error:When investigating, I learned that both
physicalIndex
andvirtualIndex
that are being passed into_updateItemData
areNaN
. Doing a little more investigating, I learned that this is likely becausethis._virtualStart
is alsoNaN
.At this point I got a bit lost trying to trace things back to a root cause since the only time
_virtualStart
is explicitly set is to 0 in theready
function.The
core-list
in question is actually open source, so that might make things easier to investigate.