【发布时间】:2016-06-27 02:34:15
【问题描述】:
我正在尝试为我的 Ember 应用创建注册和登录表单。我正在使用输入助手,但是当我为电子邮件和密码设置字段时,占位符文本以各自类型的格式出现,并且还将“值”显示为占位符文本,而不是定义的“占位符”文本。名字和姓氏字段以正确的格式显示正确的占位符文本。 这是我的注册模板中的代码:
{{input type="text" value=firstname id="firstname" placeholder="first name" autofocus="autofocus"}}
{{input type="text" value=lastName placeholder="last name"}}
{{input type="email" placeholder="email" value="emailAddress"}}
{{input type="password" placeholder="password" value="password"}}
{{input type="password" placeholder="confirm password" value="confirmPassword"}}
任何想法如何解决这个问题?
【问题讨论】: