This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Media Library has no close event

Comments

2 comments

  • Avatar
    Stefan

    Hi everyone,

    I refactored the code slightly; that’s why the link to the demo is outdated above. Please, start exploring and debugging from here instead: https://github.com/natterstefan/cloudinary-media-library-react-example/blob/ebe8ee46ca25146f7abd86be1dba49aa52e48d46/src/ReactModalExample.tsx#L32

    0
    Comment actions Permalink
  • Avatar
    Eric Pasos

    Hi Stefan,

    Thanks for the additional information, and just to indicate that the close/destroy callback functions are currently unavailable for Media Library Widget as you have highlighted. The possible workaround to address your use case is to provide a component wrapper for the Media Library Widget, where you could handle the disposing of DOM elements - though, this may not be the most elegant approach. 

    And since your use case is a good recommendation for our product improvement, could you please suggest them on our public roadmap so we could help to follow it up with our internal ticket for the development team? Thanks.

    0
    Comment actions Permalink

Post is closed for comments.