🐛 fix(NavigationDrawer): disable touching to expand when Bottom set (#2364)

This commit is contained in:
capdiem
2025-03-27 10:15:31 +08:00
committed by GitHub
parent df18944ad4
commit bab8391abc

View File

@@ -590,8 +590,10 @@ public partial class MNavigationDrawer : MasaComponentBase, IOutsideClickJsCallb
private void SyncStateToTouchJS() => _touchJSObjectResult?.SyncState(GetTouchState());
private TouchState GetTouchState()
=> new(IsActive, ReactsToClick, ComputedWidth.ToDouble(), Touchless,
MasaBlazor.RTL ? (Right ? "left" : "right") : (Right ? "right" : "left"));
{
var position = Bottom ? "bottom" : (MasaBlazor.RTL ? (Right ? "left" : "right") : (Right ? "right" : "left"));
return new TouchState(IsActive, ReactsToClick, ComputedWidth.ToDouble(), Touchless, position);
}
protected async void CallUpdate()
{