A checkbox in ContextMenu closes the menu. Any way to keep it open?

I implemented ContextMenu where elements have checkboxes enabled via setCheckable (true). It seems strange to me that the context menu closes as soon as I click on the checkbox. They are not configured as radio buttons (implying a single choice), and since the nature of the checkboxes allows multiple selection, I don’t know how to prevent the context menu from closing when the flag is clicked.

Am I missing a property? Thanks in advance...

+3
source share
1 answer

The behavior of the context menu is to process the click and close.

, . , longClick .

0

Source: https://habr.com/ru/post/1775669/


All Articles