Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submenu flickers on and off when hovering over disabled items #17992

Open
apman opened this issue Jan 17, 2025 · 0 comments
Open

Submenu flickers on and off when hovering over disabled items #17992

apman opened this issue Jan 17, 2025 · 0 comments

Comments

@apman
Copy link

apman commented Jan 17, 2025

Describe the bug

When a submenu contains a disabled item, hovering the mouse over that item makes the whole submenu flicker on and off, and eventually disappear.

Monosnap.screencast.2025-01-17.17-22-04.mp4

To Reproduce

Take any nested menu (a MenuFlyout here, but the same happens with Menu) with a disabled item in a submenu:

<Panel Margin="20">
    <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Height="20"
               Text="Right-click me">
      <TextBlock.ContextFlyout>
        <MenuFlyout Placement="RightEdgeAlignedTop">
          <MenuItem Header="Item 1" />
          <MenuItem Header="Item 2">
            <MenuItem Header="SubItem 1" />
            <MenuItem Header="SubItem 2"  IsEnabled="False" />
            <MenuItem Header="SubItem 3"/>
          </MenuItem>
          <MenuItem Header="Item 3" />
        </MenuFlyout>
      </TextBlock.ContextFlyout>
    </TextBlock>
  </Panel>

Hover the mouse pointer over the disabled item to see it flickering

Expected behavior

The submenu should remain visible as long as the mouse pointer is above any of its items.

Avalonia version

11.2.3

OS

macOS

Additional context

No response

@apman apman added the bug label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants