VE-1477: Hide selection and context menu while Template dialog is open