react-tooltip icon indicating copy to clipboard operation
react-tooltip copied to clipboard

Tooltip redering twice in two seperate positions

Open tatsujb opened this issue 9 years ago • 4 comments

image

<div
                                                className="btn-greyed-out"
                                                data-tip={"Veuillez S'il vous plaît d'abords fournir des modifications au template "+ currentTemplate + "."}
                                            >
                                                <div><i className="fa fa-floppy-o" /> Sauvegarder en Template</div>
                                            </div>
                                            <ReactTooltip place="top" type="info" effect="solid" />

why is it doing this?

If I place it left or right it shows on the left in both of those case and not on top (also you'll notice the one on the left is darker making me think there's 2 or more showing on the left.

tatsujb avatar Oct 09 '17 10:10 tatsujb

@tatsujb Check if you don't create <ReactTooltip /> within a loop, but outside

Sedaj avatar Oct 17 '17 11:10 Sedaj

you must write "data-for" in your component and will reference with "id" to "data-for". for example: <component data-tip data-for='global'...../>

<ReactTooltip id='global'......./>

canoqb10 avatar Oct 20 '17 21:10 canoqb10

I'm getting this issue but I implemented data-for with a match the tooltip id

urirahimi avatar Sep 23 '18 03:09 urirahimi

I had this issue with data-for and id as well, the solution for me was to set a more unique identifier/a combination of a word and a variable that I was getting from the parent component (i.e. id=`tooltip-${parent.id}`).

Heres the same issue.

cheriejw avatar Dec 01 '18 05:12 cheriejw