How to stop Tree from expanding a feature after double-click?

When I double click on a feature to examine or change it, the tree expands that feature to show the sub-features or parameters. For example, if I double click on a Sweep, it automatically expands it in the tree to show the parameters associated with it (Lenght1, Lenght2, Angle, etc.). How can I prevent this from happening? Or at least for the branch to collapse back after closing the feature definition.