How to allow text selection inside tooltip?

I see in the CodeMirror Tooltip Example that I can select text inside tooltips.

However, with my implementation, they disappear when I try to hover on top of a tooltip, before I can select any text.

I’m just using tooltips({parent: document.body}), in my state.extensions.

I don’t know why your tooltips would be disappearing when you hover over them. Check the code that’s producing the showTooltip facet and figure out if/why it’s removing the tooltip, I’d say.

1 Like