When using getOverlayAnchorList. how to get the id of the parent element?
When using getOverlayAnchorList. how to get the index of element?
4 Replies
if there is some kind of index I can use to identify each element?
@.snkt has reached level 1. GG!
as I want to perform different action on each button press.
I have solved it by getting parent node id using react ref.
You can access the anchor itself via the anchor object passed down to the overlay comp:
@.snkt