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

Typescript error when using `getTooltipProps` in a div

Open JuanJo4 opened this issue 4 years ago • 2 comments
trafficstars

Describe the bug Typescript error when using getTooltipProps in a div.

To Reproduce Steps to reproduce the behavior:

  1. Use the returned value of getTooltipProps and use it in a div.
  2. Then you will TS error.

Typesctipt: 4.4.3 reaact: 16.9.0 @types/react: 16.14.15 csstype: 3.0.9

Expected behavior No Typescript errors.

Screenshots Screen Shot 2021-11-04 at 2 56 26 PM

Desktop (please complete the following information):

  • OS: Mac OS Monterrey
  • Browser chrome
  • Version 95.0.4638.69

JuanJo4 avatar Nov 04 '21 20:11 JuanJo4

I'm facing this exact same issue right now. Initially I thought it might be due to my implementation or incorrect usage of this library, however when trying to convert the basic example provided here in the docs I get the exact same error.

hendriklammers avatar May 05 '22 10:05 hendriklammers

Hi, could you please check if this same happens with v4.4.0?

mohsinulhaq avatar Jun 05 '22 19:06 mohsinulhaq

Closing as per https://github.com/mohsinulhaq/react-popper-tooltip/issues/140#issuecomment-1268159587

mohsinulhaq avatar Oct 11 '22 06:10 mohsinulhaq