Git Product home page Git Product logo

Comments (6)

charkour avatar charkour commented on July 18, 2024

Hey, that should be possible. I can get an example to you in the next day or so.

Which component are you using and how are you controlling if it is opened or closed?

from react-reactions.

gj1118 avatar gj1118 commented on July 18, 2024

Awesome. thanks for all the help, kind Sir.

Here is how I am using it at this moment.

  <SlackCounter
    counters={reactions.length === 0 ? reactionList : reactions}
    user={props.userInformation ? props.userInformation.username : "You"}
    onSelect={clickSelectedEmoji}
    onAdd={(e) => setShowReactions(true)}
  />
  {showReactions && (
    <SlackSelector
      active="mine"
      scrollHeight={300}
      removeEmojis={[]}
      frequent={[
        "👍",
        "🐉",
        "🙌",
        "🤦‍♀️",
        "😊",
        "🐬",
        "😹",
        "👻",
        "🚀",
        "🥶",
        "🤡",
        "🇨🇦",
      ]}
      onSelect={(e) => {
        handleSelect(e);
        setShowReactions(false);
      }}
    />
  )}

Please let me know if you need some more information please.

One more request please 🙏🏽
It seems that the SlackSelector is not sitting on top of other cotnrols. I tried to control it via css by setting the z-index, but it apparently wont work. Here is a screenshot please

image

Notice that the Slack selector has pushed down the card thereby increasing its height. It should have been on top of the underlying card. Also if this was on top , it would not have got cut off on the right hand side. I am not setting the z-index anywhere else.

Please let me know what you think.

Thank you once again for your time and patience.

Warm Regards!!

from react-reactions.

charkour avatar charkour commented on July 18, 2024

Hi @gj1118,

I found a stack overflow post that adds an event listener that will respond to user clicks. It is important to note that a <div> surrounds the <SlackSelector> and has a width set. We can attach a ref to that <div>. Checkout this stackblitz.

Does this solve your issue?

It seems that the SlackSelector is not sitting on top of other cotnrols. I tried to control it via css by setting the z-index, but it apparently wont work.

Would you be willing to give me a stackblitz or code sandbox that reproduces the issue? It would be easier for me to help if I can see the exact problem! Thank you! And warm regards.

from react-reactions.

gj1118 avatar gj1118 commented on July 18, 2024

from react-reactions.

charkour avatar charkour commented on July 18, 2024

Thanks, that is okay with me. Thanks for your patience!

With regards

from react-reactions.

charkour avatar charkour commented on July 18, 2024

Closing this issue. See slackblitz link for solution.

from react-reactions.

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.