how to prevent the daypilot modal from closing when clicked outside?
You can do it using onClose event handler:
onClose: args => { if (args.backgroundClick) { args.preventDefault(); } }