View Full Version : Type error on treepanel multi & double click

2 Apr 2013, 9:48 AM
Hi all,

I'm getting a type error on my side navigation tree panel when I click an already selected item, or when I double click an item. The second click only generates the error on a level 0 item, (e.g item not within a folder that exists on the top level), items within folders are not affected by this.

Although the second click does not generate an error on deeper level items a JSON request is still fired, could I prevent / disable this?

TypeError: active is undefined
scope = active.scope, // double click

TypeError: comp.getItemId is not a function
comp = comp.getItemId(); // Top level active item, clicked twice (not a folder)


4 Apr 2013, 11:29 AM
Hmm... not sure I know to help right off the bat. Are you using an itemclick event handler that is trying to take an action on the click event (and double-click event) that is throwing the error?

Any chance you could post a code snippet or point to a jsfiddle example that would further demonstrate how and when the error is thrown?