mohsinulhaq/react-popper-tooltip

Typescript error when using `getTooltipProps` in a div

JuanJo4 opened this issue · 3 comments

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

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.

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

Closing as per #140 (comment)