Only hide popups on selection change

Hiding on attribute change would prevent us having inspectors
which live-update their nodes.

Change-Id: If1250402f266772c3db1317d880a603068e70ba4
Merge "Only hide popups on selection change"