react-portal-tooltip | Awesome React tooltip | Frontend Framework library
kandi X-RAY | react-portal-tooltip Summary
kandi X-RAY | react-portal-tooltip Summary
Awesome React tooltip
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-portal-tooltip
react-portal-tooltip Key Features
react-portal-tooltip Examples and Code Snippets
Community Discussions
Trending Discussions on react-portal-tooltip
QUESTION
I have a chat box for a stream and I want to have react-portal-tooltips have a dropdown to show a users information when I select their name.
Visual
The way that react-portal-tooltips knows which dom element to put a tooltip under is by taking a element id. When I hardcode the id in everything works just fine. However I can't hard code because as you know chat items are generated dynamically. So I've been trying to create a id dynamical threw the use of props. When I do this however it returns with this error.
Now this only happens when I use variables in the name so the props. I've checked the values for what the output is and they are correct and what I want. This is why I'm confused because if the value is correct but it treats the string as if it is an incorrect data type.
Component Code (React.js)
This is the component for each chat item individually that gets generated.
...ANSWER
Answered 2018-May-02 at 22:48The error is perfectly clear:
#10_Torrent45 is not a valid selector
Valid ID selectors: What characters are allowed in DOM IDs?
TLDR: cannot start with a number.
Fix:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-portal-tooltip
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page