Skip to content
Discussion options

You must be logged in to vote

I ended up using the registerMutationListener function to register click listeners to my custom nodes, then keeping track of which node was clicked in a useState, then render a menu for the currently active node: https://lexical.dev/docs/concepts/dom-events#2-directly-attach-handlers

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kristofferwitt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant