This is a migrated thread and some comments may be shown as answers.

Stop select event propagation

1 Answer 83 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 08 Jan 2013, 11:40 AM
I have a treeview inside a parent div. The parent div has a fixed width and height, with overflow:scroll. So when the treeview contains many items, you can scroll the div down to see them. If you do this, then select a node, the div goes back to the top, so you then have to scroll down to find the node you clicked on.

I'm guessing clicking on the treeview is then propagating to the parent div. Is there a way to stop this?

Thanks

1 Answer, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 08 Jan 2013, 11:54 AM
Fixed it. Removed the parent div and applied its styling to the treeview div itself.
Tags
TreeView
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Share this question
or