Skip to content

Commit

Permalink
fix(TabView): Skia and wasm tabview index selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Oct 21, 2024
1 parent b113bd2 commit 7f90448
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Uno.UI/Microsoft/UI/Xaml/Controls/TabView/TabView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,11 @@ private void OnListViewLoaded(object sender, RoutedEventArgs args)
TabItems = lvItems;
}

if (ReadLocalValue(SelectedItemProperty) != DependencyProperty.UnsetValue)
if (ReadLocalValue(SelectedItemProperty) != DependencyProperty.UnsetValue
#if __SKIA__ || __WASM__
&& SelectedItem is not null
#endif
)
{
UpdateSelectedItem();
}
Expand Down

0 comments on commit 7f90448

Please sign in to comment.