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

Please sign in to leave a comment.