Open igordmn opened 2 years ago
I saw the same thing when I tried to put ContextMenuArea
inside SelectionContainer
.
But putting SelectionContainer
inside ContextMenuArea
seems to work fine.
@igordmn as this issue persisted, I've been investigating more about it. The problem seems to be because the context menu contains text "outside" the scope of the selected text. If you click on the part of the context menu that is on top of the selected text, it won't crash.
I have my own implementation of the context menu due to other issues with the default one, but I had the exact same issue. I've solved it by adding a DisableSelection
around the popup that contains the context menu, perhaps something similar could be done for the Compose Desktop implementation.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
1.2.0-alpha01-dev774
Crash when we click on Copy:
See also https://github.com/JetBrains/compose-jb/issues/979