From cd0ee1c26d5a784f76e5c9b3fe1c486a09f6db2a Mon Sep 17 00:00:00 2001 From: Leigh Pointer Date: Tue, 10 Dec 2024 09:25:01 +0100 Subject: [PATCH] FIX for #4906 Profile Field does not allow max length This update applies the maxlength attribute fix to all input and textarea elements. The maxlength attribute will only be added if p.MaxLength is greater than 0, allowing unlimited characters when it's 0 or less. --- .../Modules/Admin/UserProfile/Index.razor | 26 ++++++++++++------- Oqtane.Client/Modules/Admin/Users/Add.razor | 4 +-- Oqtane.Client/Modules/Admin/Users/Edit.razor | 4 +-- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/Oqtane.Client/Modules/Admin/UserProfile/Index.razor b/Oqtane.Client/Modules/Admin/UserProfile/Index.razor index d21f9541..5a63de2d 100644 --- a/Oqtane.Client/Modules/Admin/UserProfile/Index.razor +++ b/Oqtane.Client/Modules/Admin/UserProfile/Index.razor @@ -105,7 +105,7 @@ }
-
+
@if (!string.IsNullOrEmpty(p.Options)) { @if (!string.IsNullOrEmpty(p.Autocomplete)) @@ -149,22 +149,26 @@ { @if (p.IsRequired) { - + } else { - + } } else { @if (p.IsRequired) { - + } else { - + } } } @@ -174,22 +178,26 @@ { @if (p.IsRequired) { - + } else { - + } } else { @if (p.IsRequired) { - + } else { - + } } } diff --git a/Oqtane.Client/Modules/Admin/Users/Add.razor b/Oqtane.Client/Modules/Admin/Users/Add.razor index 537a3bac..10cf19e8 100644 --- a/Oqtane.Client/Modules/Admin/Users/Add.razor +++ b/Oqtane.Client/Modules/Admin/Users/Add.razor @@ -81,11 +81,11 @@ { @if (p.Rows == 1) { - + } else { - + } }
diff --git a/Oqtane.Client/Modules/Admin/Users/Edit.razor b/Oqtane.Client/Modules/Admin/Users/Edit.razor index cf5ac069..0fe4af2a 100644 --- a/Oqtane.Client/Modules/Admin/Users/Edit.razor +++ b/Oqtane.Client/Modules/Admin/Users/Edit.razor @@ -110,11 +110,11 @@ { @if (p.Rows == 1) { - + } else { - + } }