Skip to main content

Background Click

By default, a modal is cancelled if the user clicks anywhere outside the modal. This behavior can be disabled by setting DisableBackgroundCancel option to true.

Configuring for all modals

<CascadingBlazoredModal DisableBackgroundCancel="true" />

Configuring for a single modal

var options = new ModalOptions() 
{
DisableBackgroundCancel = true
};

Modal.Show<Confirm>("Are you sure?", options);