AvaloniaUI / Avalonia.Controls.TreeDataGrid

A combined TreeView/DataGrid for Avalonia.
MIT License
233 stars 48 forks source link

Impossible to open context menu of editing cell #300

Open 00jeser opened 2 weeks ago

00jeser commented 2 weeks ago

Description

When an cell has a ContextFlyout or ContextMenu with Focusable=True, you cannot open it. Right-clicking on the element causes the context menu to open and take focus. This results in the cell losing focus and exiting edit mode, causing the element with the context menu to disappear along with the context menu itself.

Steps to Reproduce

Open the TreeDataGrid containing a TextCell or TemplatedCell with an element that has a context menu. Start editing the cell. Attempt to paste text using the right-click context menu. Environment

TreeDataGrid Version: 11.0.10 Avalonia Version: 11.0.10 Operating System: Windows 11