Coder Social home page Coder Social logo

Comments (11)

ghosh avatar ghosh commented on May 17, 2024 11

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.

from micromodal.

pbek avatar pbek commented on May 17, 2024 2

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

Uncaught TypeError: Cannot read property 'setAttribute' of null
    at Modal.showModal (micromodal.es.js:138)

I guess a simple this.modal = typeof targetModal === "string" ? document.getElementById(targetModal) : targetModal would already solve this issue.

from micromodal.

Raidri avatar Raidri commented on May 17, 2024 1

I push this because I need that feature too for my web components. Is there maybe any new informations?

from micromodal.

crtl avatar crtl commented on May 17, 2024

Is this still on the radar?

from micromodal.

pbek avatar pbek commented on May 17, 2024

@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.

image

from micromodal.

gstvribs avatar gstvribs commented on May 17, 2024

any updates on this issue?

from micromodal.

obbap1 avatar obbap1 commented on May 17, 2024

please any updates on this ?

from micromodal.

ronilaukkarinen avatar ronilaukkarinen commented on May 17, 2024

Bumping this as well. Not a big change.

from micromodal.

benCoomes avatar benCoomes commented on May 17, 2024

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.

from micromodal.

pbek avatar pbek commented on May 17, 2024

Just as a reminder, I have my PR #351 running in production since July 2020 without any issues in our web components.

from micromodal.

pbek avatar pbek commented on May 17, 2024

Any news or considerations on this, @ghosh?

from micromodal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.