#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:
Xeevis
2015-05-25 01:08:59 +02:00
parent 3e55c1649e
commit 3b5de0679f

View File

@@ -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;
}