Skip to content

Combo box automatically closing as soon as opened when added in a Menu control #1467

Description

@DineshSolanki

Describe the bug

DropDown of combobox opens and closes automatically, even without making a selection, it stays open until mouse is pressed, as soon as mouse is lifted, the dropdown closes.

this behaviour occurs when combobox is added in a menu

it is only happening in version 3.4.5

Steps to reproduce the bug

  1. Add the menu to a window
  2. Add combox as menu item
  3. try to open drop-down of combobox
<Menu IsMainMenu="True" Grid.Row="0">
            <hc:ComboBox hc:InfoElement.ShowClearButton="True" ItemsSource="{Binding DataList}" SelectedIndex="0"/>
        </Menu>

Expected behavior

the dropdown should stay open until I make a selection.

Screenshots

NVIDIA_Share_05jh8xcRmb

NuGet package version

HandyControls (Custom version) 3.4.5

IDE

Visual Studio 2022

Framework type

.Net 6.0

Windows version

Windows 11 (22621)

Additional context

suspected commit 8e707a6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions