Fix for #21244 - do nothing on click outside modal.