You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem when i enable autoscroll option and i lazy load a folder with no children on it (my lazy function return an empty array : []). The problem seems to be in "nodeSetExpanded" function and more precisely in this code block:
dfd.done(function(){
if( flag && opts.autoScroll && !noAnimation ) {
// Scroll down to last child, but keep current node visible
node.getLastChild().scrollIntoView(true, {topNode: node}).always(function(){
if( !noEvents ) {
ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);
}
});
} else {
if( !noEvents ) {
ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);
}
}
});
node.getLastChild() is returning null so node.getLastChild().scrollIntoView throw an exception.
Do i make a mistake or is it a bug :@ ?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for your great control :) !
I have a problem when i enable autoscroll option and i lazy load a folder with no children on it (my lazy function return an empty array : []). The problem seems to be in "nodeSetExpanded" function and more precisely in this code block:
dfd.done(function(){
if( flag && opts.autoScroll && !noAnimation ) {
// Scroll down to last child, but keep current node visible
node.getLastChild().scrollIntoView(true, {topNode: node}).always(function(){
if( !noEvents ) {
ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);
}
});
} else {
if( !noEvents ) {
ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);
}
}
});
node.getLastChild() is returning null so node.getLastChild().scrollIntoView throw an exception.
Do i make a mistake or is it a bug :@ ?
Thanks in advance!
The text was updated successfully, but these errors were encountered: