Fix rerender of sidebar when the details panel is opened

The editorial was being rerendered when the details panel was opened or closed. Fixing that also required deselecting the charm when the panel is closed.