From a459904e1fa76d28b527233c7fbe5a386b8d7407 Mon Sep 17 00:00:00 2001 From: Byron Mayne Date: Wed, 15 Apr 2026 08:15:31 -0400 Subject: [PATCH] refactor | Added a new property to expose the ability to disable the sorting (#7360) * Added a new property to expose the ability to disable the sorting This was because I don't want my items to be sorted by the control * Update src/clients/Elsa.Api.Client/Shared/UIHints/DropDown/SelectList.cs Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../Elsa.Api.Client/Shared/UIHints/DropDown/SelectList.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clients/Elsa.Api.Client/Shared/UIHints/DropDown/SelectList.cs b/src/clients/Elsa.Api.Client/Shared/UIHints/DropDown/SelectList.cs index e2def9131..7f011139a 100644 --- a/src/clients/Elsa.Api.Client/Shared/UIHints/DropDown/SelectList.cs +++ b/src/clients/Elsa.Api.Client/Shared/UIHints/DropDown/SelectList.cs @@ -5,4 +5,5 @@ namespace Elsa.Api.Client.Shared.UIHints.DropDown; /// /// The items. /// Whether the select list represents a flags enum. -public record SelectList(ICollection Items, bool IsFlagsEnum = false); \ No newline at end of file +/// Whether to sort the items alphabetically otherwise will just use the order provided. +public record SelectList(ICollection Items, bool IsFlagsEnum = false, bool SortItems = true); \ No newline at end of file