From 439866216cfac2dc826dea3210ce746bfcac15dc Mon Sep 17 00:00:00 2001 From: Cody Date: Mon, 15 Jan 2024 09:10:12 -0800 Subject: [PATCH] adds autocomplete attribute to select element --- .../Modules/Admin/UserProfile/Index.razor | 39 ++++++++++++++----- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/Oqtane.Client/Modules/Admin/UserProfile/Index.razor b/Oqtane.Client/Modules/Admin/UserProfile/Index.razor index 44519a4f..466e853f 100644 --- a/Oqtane.Client/Modules/Admin/UserProfile/Index.razor +++ b/Oqtane.Client/Modules/Admin/UserProfile/Index.razor @@ -103,21 +103,40 @@
- @if (!string.IsNullOrEmpty(p.Options)) + @if (!string.IsNullOrEmpty(p.Options)) { - + @foreach (var option in p.Options.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries)) { - + @if (GetProfileValue(p.Name, "") == option || (GetProfileValue(p.Name, "") == "" && p.DefaultValue == option)) + { + + } + else + { + + } } - else + + } + else + { + + + } } else {