Vue.D3.tree icon indicating copy to clipboard operation
Vue.D3.tree copied to clipboard

Expected number > undefined

Open Moonflakes opened this issue 5 years ago • 1 comments

Hello, I have multiple expected number errors for path and g in the console :

Error: <path> attribute d: Expected number, "M undefined,undefi…".
Error: <g> attribute transform: Expected number, "translate( NaN,NaN ) rotate…".

Do you know what is this due to ? (data is in the right format)

Moonflakes avatar Dec 09 '20 18:12 Moonflakes

Hi I've made some initial investigation and found out that it is somehow related to the 'updateIfNeeded' function in /src/Tree.vue. Not sure what is the cause, but when I tried to use 'collapseAll' on my tree in 'mounted' section, for the first time after a window reload it was causing an error in the console, but the next time I open the tree, everything is ok with it. When I added 'update = false' to 'collapseAll' function, the issue had gone

KUGDev avatar Jan 27 '22 12:01 KUGDev