-
Notifications
You must be signed in to change notification settings - Fork 232
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to pass Element itself to targetModal, not only 'id' of element #65
Comments
Is this still on the radar? |
I push this because I need that feature too for my web components. Is there maybe any new informations? |
In an effort to keep this library lightweight and simple, have decided not to implement this feature. If there is a rising demand for this, am open to consider this again. Thanks for your patience and understanding guys. |
Being able to pass an element as modal would also make this great library work inside of web-components. Otherwise you'll just get a
I guess a simple |
@ghosh, I can confirm that changing this one line (https://github.com/ghosh/Micromodal/pull/351/files) allows the library to be used in web components. |
any updates on this issue? |
please any updates on this ? |
Bumping this as well. Not a big change. |
Another bump, if this library doesn't support shadow dom then I can't use it for the project I am working on. Which is a shame, because it is forward-looking with no dependencies and es6 module support. |
Just as a reminder, I have my PR #351 running in production since July 2020 without any issues in our web components. |
Any news or considerations on this, @ghosh? |
I've taken over maintenance of micromodal, and I just merged PR #351. I'll be pushing it out in v0.6.0 |
v0.6.0 is published! 🚀 Let me know if anyone has any issues with it. |
Hello!
I am using shadow DOM, and if my modal is hidden inside it,
document.getElementById('id-of-shadowed-element')
can't select my modal.I think, it would be handy to have the ability to pass not only id of element, but the element itself in
options.targetModal
.Example:
The text was updated successfully, but these errors were encountered: