mirror of
https://gitee.com/blazorcomponent/MASA.Blazor.git
synced 2025-12-06 10:19:23 +08:00
🐛 fix(NavigationDrawer): disable touching to expand when Bottom set (#2364)
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user