提交 a7ff9d7f 编写于 作者: P pissang

Fix id generation when value is zero.

上级 be1d730d
......@@ -541,7 +541,7 @@ listProto._initDataFromProvider = function (start, end) {
}
var name = nameList[idx];
// Try using the id in option
var id = dataItem && dataItem.id;
var id = dataItem == null ? null : dataItem.id;
if (id == null && name) {
// Use name as id and add counter to avoid same name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册