Comments (6)
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.
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
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.
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.
from react-reactions.
Thanks, that is okay with me. Thanks for your patience!
With regards
from react-reactions.
Closing this issue. See slackblitz link for solution.
from react-reactions.
Related Issues (20)
- More flexible Reaction Counter HOT 3
- Pass className to Selector HOT 11
- Dependency Dashboard
- Seems like a icon is missing HOT 3
- Add ref forwarding
- Slack add reaction shows empty box HOT 14
- Handle Slack fonts better HOT 1
- You didn't show in custom counter HOT 16
- Like not working on mobile touch HOT 8
- Hover on GithubCounter missing out on Chrome HOT 2
- Error when I import Reaction Counter HOT 3
- Changing color on background of reaction for slack counter HOT 2
- Reaction should have key and label to allow mutable text on tooltip to support i18n HOT 4
- Selector and Counter Bundlize as one HOT 4
- Make Slack selector opacity 1.0 by default, or allow custom styling HOT 1
- SlackSelector header/top bar category icons are missing HOT 2
- Slack Selector - Flag icons shows only letters on Windows
- Reaction Counter with unexpected box shadow
- Trouble styling some counters HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-reactions.