everweij / react-laag

Hooks to build things like tooltips, dropdown menu's and popovers in React

Home Page:https://www.react-laag.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

migrating v1 to v2 ToggleLayerProps open function

voxvici opened this issue · comments

Hi,
I'm unable to find a replacement for ToggleLayerProps open function that allows ClientRect as the provided value where to position tooltip

The clientRect prop is used to position the layer. Provide a function returning a ClientRect if you want react-laag to re-position the layer on scrolling / resizing.
The target prop is used to determine where to place the layer in the DOM.

Is this still possible with v2? Thank you

For anyone facing a similar issue it doesn't seem possible I am looking at a substitute solution, the project is abandoned it seems

@voxvici did you find a substitute solution?