From 3b5de0679f4464a1c8f49deddccc5fd3ea575331 Mon Sep 17 00:00:00 2001 From: Xeevis Date: Mon, 25 May 2015 01:08:59 +0200 Subject: [PATCH] #5109: Email field shouldn't specify email type in design mode When email type is specified on an input it triggers browser validation on that field which prevents administrator from inserting tokens like {User.Email}. --- .../Views/Elements/EmailField.Design.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.DynamicForms/Views/Elements/EmailField.Design.cshtml b/src/Orchard.Web/Modules/Orchard.DynamicForms/Views/Elements/EmailField.Design.cshtml index b0bae7455..f16f885b1 100644 --- a/src/Orchard.Web/Modules/Orchard.DynamicForms/Views/Elements/EmailField.Design.cshtml +++ b/src/Orchard.Web/Modules/Orchard.DynamicForms/Views/Elements/EmailField.Design.cshtml @@ -5,7 +5,7 @@ var tagBuilder = TagBuilderExtensions.CreateElementTagBuilder(Model, "input"); tagBuilder.AddCssClass("text design"); - tagBuilder.Attributes["type"] = "email"; + tagBuilder.Attributes["type"] = "text"; tagBuilder.Attributes["value"] = element.Value; tagBuilder.Attributes["name"] = element.Name; }