score:1

you can pass following props to mantine modal to prevent it from closing:

  /** should modal be closed when outside click was registered? */
  closeonclickoutside: false;
  /** should modal be closed when escape is pressed? */
  closeonescape: false;
  /** hides close button if set to false, modal still can be closed with escape key and by clicking outside */
  withclosebutton: false;
  /** should modal be closed when confirm button is pressed */
  closeonconfirm: false,
  /** should modal be closed when cancel button is pressed */
  closeoncancel: false,

Related Query

More Query from same tag