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

Comma separated value for Place prop throws error

Open daceynolan opened this issue 3 years ago • 3 comments

When trying to pass a list of place options as stated in the docs , it does not work and throws an error.
Screen Shot 2022-06-14 at 1 37 43 PM

Error: Screen Shot 2022-06-14 at 1 39 48 PM

TypeScript Type for Place prop: Screen Shot 2022-06-14 at 1 36 26 PM Screen Shot 2022-06-14 at 1 36 20 PM

The TypeScript Error: Screen Shot 2022-06-14 at 1 36 03 PM Screen Shot 2022-06-14 at 1 35 57 PM

daceynolan avatar Jun 14 '22 17:06 daceynolan

@daceynolan Hi, I think you misunderstood the type, it's either TOP or RIGHT or BOTTOM or LEFT, you pass only ONE place.

ChARCOOL avatar Jun 18 '22 16:06 ChARCOOL

@ChARCOOL I don't think I misunderstood the type. The docs said that you could pass the place comma-separated under the values. It even shows an example as "left,right".

Screen Shot 2022-06-21 at 9 58 59 AM

daceynolan avatar Jun 21 '22 13:06 daceynolan

@daceynolan you absolutely right, it's a mistake in docs or missed functionality in code.

And this docs was updated here https://github.com/wwayne/react-tooltip/pull/743 but functionality wasn't added correctly. @aronhelser please check

Zemelia avatar Aug 18 '22 08:08 Zemelia

+1, I'm also having this issue.

alexanderjarl91 avatar Oct 17 '22 10:10 alexanderjarl91

+1

DavidSentiurin avatar Dec 02 '22 13:12 DavidSentiurin