mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#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}.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user