I'm using Polymer with Chrome 63.0.3239.108 (updated this morning) and i got some new errors while launching my webapp :
[DOM] Found 3 elements with non-unique id #input
Here's my code :
<div class="card-content" on-keypress="_keyHandler">
<paper-input id="login" label="[[i18n('uid')]]"></paper-input>
<paper-input id="pwd" label="[[i18n('pwd')]]" type="password"></paper-input>
<paper-input id="server" label="[[i18n('server')]]"></paper-input>
</div>
Yeah, paper-input elements have the same id, but what can I do to remove this console error ?
Thanks a lot
答案 0 :(得分:1)
当我使用角度5时我遇到了同样的问题。 我将“name”属性放入我的标签中并修复。
像:
答案 1 :(得分:0)
我有类似的问题。 Polymer员工纸张输入开发人员Few days ago notwaldorf 关闭了一个连接问题,在GitHub上发布了paper-input 1.2.0 所以更新你的bower.json 与
> dput(myData)
structure(list(date = structure(c(14978, 14979, 14980, 14981,
14983, 14984, 14985, 14986, 14987, 14988, 14990, 14991, 14992,
14993, 14994, 14995, 14997, 14998, 14999, 15000, 15001, 15002,
15004, 15005), class = "Date"), open = c(2.95, 2.55, 2.95, 2.55,
2.95, 2.95, 3.24, 5.91, 5.79, 2.55, 2.95, 2.95, 2.95, 2.95, 2.95,
2.55, 2.55, 5.79, 6.63, 2.55, 2.95, 2.95, 2.55, 5.79), close = c(2.95,
2.95, 2.55, 2.95, 2.95, 2.95, 2.95, 2.95, 5.79, 2.95, 2.95, 2.95,
2.95, 2.95, 2.95, 2.95, 2.95, 2.95, 2.95, 2.95, 2.95, 5.79, 2.95,
2.95), max = c(5.91, 2.95, 2.95, 2.95, 2.95, 2.95, 3.24, 5.91,
5.79, 2.95, 2.95, 2.95, 2.95, 2.95, 2.95, 6.63, 2.95, 5.79, 6.63,
5.79, 2.95, 5.79, 2.95, 6.63), min = c(2.55, 2.55, 2.55, 2.55,
2.55, 2.95, 2.55, 2.55, 2.95, 2.55, 2.95, 2.55, 2.95, 2.55, 2.95,
2.55, 2.55, 2.95, 2.55, 2.55, 2.55, 2.55, 2.55, 2.95)), class = c("tbl_df",
"tbl", "data.frame"), .Names = c("date", "open", "close", "max",
"min"), row.names = c(NA, -24L))
甚至更好
"paper-input": "1.2.0",
(跟进可能的补丁发布)
希望有用; - )