From 7ec07b3f0e3e2e6d960c7e562a160cef3e0e4abd Mon Sep 17 00:00:00 2001 From: WXL-steven <76638078+WXL-steven@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:51:33 +0800 Subject: [PATCH] updated CHANGELOG.md & run 'dart format .' --- CHANGELOG.md | 3 +++ lib/src/controls/navigation/navigation_view/pane_items.dart | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36c787c0..434ce4ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## NEXT +* fix: Resolved issue where `PaneItem` within `PaneItemExpander` remained accessible in `NavigationPane` compact mode ([#1081](https://github.com/bdlukaa/fluent_ui/issues/1081)) + ## 4.9.0 * fix: ¹ `DropDownButton.closeAfterClick` is now correctly applied. ² Added `MenuFlyoutItem.closeAfterClick`, which defaults to `true`. ([#1016](https://github.com/bdlukaa/fluent_ui/issues/1016)) diff --git a/lib/src/controls/navigation/navigation_view/pane_items.dart b/lib/src/controls/navigation/navigation_view/pane_items.dart index 7adb3472..b8fea2af 100644 --- a/lib/src/controls/navigation/navigation_view/pane_items.dart +++ b/lib/src/controls/navigation/navigation_view/pane_items.dart @@ -937,9 +937,9 @@ class _PaneItemExpanderMenuItem extends MenuFlyoutItemBase { forceEnabled: item.enabled, builder: (context, states) { final textStyle = (isSelected - ? navigationTheme.selectedTextStyle?.resolve(states) - : navigationTheme.unselectedTextStyle?.resolve(states)) - ?? const TextStyle(); + ? navigationTheme.selectedTextStyle?.resolve(states) + : navigationTheme.unselectedTextStyle?.resolve(states)) ?? + const TextStyle(); final iconTheme = IconThemeData( color: textStyle.color ?? (isSelected