mx:Tree not dispatching "itemClick" event when click on icon

Posted by Xshare on Stack Overflow See other posts from Stack Overflow or by Xshare
Published on 2010-06-16T14:27:00Z Indexed on 2010/06/16 14:42 UTC
Read the original article Hit count: 358

Filed under:
|
|
|
|

I have a flex tree that worked perfectly fine when we set the defaultLeafIcon={null} and the folderClosedIcon and folderOpenIcon to {null}. We decided to put the icons back in and took out the nulls. Now they show up fine, but if you click on the icon instead of the label or the rest of the row, it seems to change the selected item, shows the highlight around the new item, but doesn't dispatch the ItemClick event. This makes it really hard to know that the tree's selected item has changed! The weird part is that once you have clicked on the icon once and it looked like the selectedItem changed (or at least it applied that style), if you click the same icon again, it will actually fire the itemClick event. if you click any other icon, it does the same thing again, switching the selectedItem and styling that row, but not firing the itemClick event.

Any ideas? Thanks. (This is in flex 4 btw)

© Stack Overflow or respective owner

Related posts about flex

Related posts about events