preventing clicking off a modal from changing the side panel.