There was an error while loading. Please reload this page.
2 parents 9a66e30 + 920b049 commit d8516feCopy full SHA for d8516fe
1 file changed
Fluent.Ribbon/Controls/ComboBox.cs
@@ -658,7 +658,11 @@ protected override void OnDropDownOpened(EventArgs e)
658
659
if (this.SelectedItem is not null)
660
{
661
- Keyboard.Focus(this.ItemContainerGenerator.ContainerOrContainerContentFromItem<IInputElement>(this.SelectedItem));
+ var selectedItemContainer = this.ItemContainerGenerator.ContainerOrContainerContentFromItem<IInputElement>(this.SelectedItem);
662
+ if (selectedItemContainer is not null)
663
+ {
664
+ Keyboard.Focus(selectedItemContainer);
665
+ }
666
}
667
668
this.focusedElement = Keyboard.FocusedElement;
0 commit comments