Search code examples
slackslack-apislack-block-kit

How to prevent Slack modal from closing while clicking outside the modal area


Just what the title says. I have a Slack modal flow that involves a lot of fields. Accidentally clicking outside the modal area causes the user to lose all the entered data. How can I prevent this from happening?

I would like to prevent the modal from closing while clicking outside the modal body.


Solution


  • Modal window is part of the Slack client application.
    Developers have no control on its behavior.