ghosh / Micromodal

⭕ Tiny javascript library for creating accessible modal dialogs
https://micromodal.now.sh/
MIT License
3.54k stars 229 forks source link

Feature idea: "non-dismissable" option #502

Open Geolim4 opened 2 years ago

Geolim4 commented 2 years ago

Hello !

Thanks for this awesome tool. I was wondering if an option such as "non-dismissable" option could be implemented.

The idea would be the following one: Forcing the user to make a choice using the buttons and not having the ability to close the modal by ESCaping, clicking outside of it, or clicking on the [X] button.

Is that something that can be considered ? :D

Thank you !

nickolasjadams commented 1 year ago

@Geolim4 Looks like it was already addressed here. https://github.com/ghosh/micromodal/issues/105

The stance taken is that this feature will not be implemented. Forking the library and making the change could be done in just a few lines though. Some have mentioned other solutions under that issue.