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

tooltip with big text duplicate it

Open daniloab opened this issue 5 years ago • 2 comments

how breaks line?

Screen Shot 2020-11-18 at 00 28 46

daniloab avatar Nov 18 '20 03:11 daniloab

I encountered twice tooltips when settting only place, even with small text. :( I link another issue that talk about duplicate tooltips too.

My version: "react-tooltip": "^4.2.21",

Exemple

            <input name="filter" type="text" className="mb-2" placeholder="Champs d’une commande"
              onChange={this.handleInputChange.bind(this)} value={this.state.filter} size="sm" style={{ width:"300px" }}
              data-tip='small text' />
            <ReactTooltip place="bottom"/>

result: image

Without place, I've no duplicate issue image

boly38 avatar Oct 16 '21 13:10 boly38

✅ by reading the readme, I fixed the twice tooltips on my side by adding unique id and data-for on my elements. 👍

boly38 avatar Feb 19 '22 19:02 boly38