How to get reference to overlay anchor
Hello!
I want to position an icon on the bottom-right of every contexteditable=true or textarea element that is currently focused. To do that, I was thinking on getting the element via getOverlayAnchor with a querySelector.
However, to accomplish it I need to get a reference to said element in order to get its bounding rect and calculate the position accordingly.
I tried the custom render function but I always get the "html" element inside the "anchor" prop.
Is there a way to accomplish this? Is my approach correct or does anyone already know how to do this?
Thank you!
I want to position an icon on the bottom-right of every contexteditable=true or textarea element that is currently focused. To do that, I was thinking on getting the element via getOverlayAnchor with a querySelector.
However, to accomplish it I need to get a reference to said element in order to get its bounding rect and calculate the position accordingly.
I tried the custom render function but I always get the "html" element inside the "anchor" prop.
Is there a way to accomplish this? Is my approach correct or does anyone already know how to do this?
Thank you!