Giter Site home page Giter Site logo

Comments (5)

oliver-dvorski avatar oliver-dvorski commented on July 20, 2024

#4375

#4389

from talk.

kabeaty avatar kabeaty commented on July 20, 2024

Hello @SadhuSantosh, Thank you for reaching out with this. I would recommend passing the customScrollContainer option through to Coral when creating the comment stream embed. The customScrollContainer supports a custom HTML element as a scroll container if Coral is rendered outside of the render window. So, in this case, you'd want to pass through an HTML element that contains Coral within the modal. This solution has resolved similar issues when we've encountered them before. See https://github.com/coralproject/talk/blob/develop/client/src/core/client/embed/Coral.ts#L41

from talk.

SadhuSantosh avatar SadhuSantosh commented on July 20, 2024

@kabeaty Thanks for the inputs, Can you share any code snippet that would help me move forward?

from talk.

kabeaty avatar kabeaty commented on July 20, 2024

To pass through a custom scroll container, get the HTML element that contains Coral within the modal that you want to use and pass it through when you create the stream embed. So, something like this wherever you are already creating the stream embed:

Coral.createStreamEmbed({
  // other arguments already passed through here
  customScrollContainer: document.getElementById("INSERT_ID_OF_SCROLL_CONTAINER_ELEMENT");
});

Hope this helps!

from talk.

losowsky avatar losowsky commented on July 20, 2024

@SadhuSantosh @oliver-dvorski Since Kathryn responded above with a solution, I'm going to close this ticket. Let us know if you have any other issues!

from talk.

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.