From 0b7c31f6d250100cb1196bcfbe9250d98d6f9211 Mon Sep 17 00:00:00 2001 From: capdiem Date: Tue, 10 Sep 2024 18:03:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(Sortable):=20add=20the=20def?= =?UTF-8?q?ualt=20value=20to=20Filter=20and=20Handle=20parameters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Sortable/MSortableProviderBase.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Masa.Blazor/Components/Sortable/MSortableProviderBase.cs b/src/Masa.Blazor/Components/Sortable/MSortableProviderBase.cs index 52ff7dc9da..cc3e140300 100644 --- a/src/Masa.Blazor/Components/Sortable/MSortableProviderBase.cs +++ b/src/Masa.Blazor/Components/Sortable/MSortableProviderBase.cs @@ -91,7 +91,8 @@ public bool Disabled /// Selectors that do not lead to dragging /// [Parameter] - public string? Filter { get; set; } + [MasaApiParameter(".ignore-elements")] + public string? Filter { get; set; } = ".ignore-elements"; /// /// Ignore the HTML5 DnD behaviour and force the fallback to be used @@ -117,7 +118,8 @@ public bool Disabled /// Drag handle selector within list items /// [Parameter] - public string? Handle { get; set; } + [MasaApiParameter(".handle")] + public string? Handle { get; set; } = ".handle"; /// /// Will always use inverted swap zone if set to true