Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Global defaults #457

Open
leafac opened this issue Jun 29, 2021 · 0 comments
Open

Feature Request: Global defaults #457

leafac opened this issue Jun 29, 2021 · 0 comments

Comments

@leafac
Copy link

leafac commented Jun 29, 2021

Great library, y鈥檃ll 馃檶

I propose we add something like:

MicroModal.defaults = { disableScroll: false };

I鈥檇 find that useful because I鈥檓 not using MicroModal.init(). Instead I put MicroModal.open() on the onclick of my buttons. Right now I have to do something like MicroModal.open(<target>, microModalDefaults), where microModalDefaults is a global variable.

If you like the idea please let me know and I may work on a Pull Request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant