【发布时间】:2019-10-01 02:26:24
【问题描述】:
尝试创建一个“添加行”按钮,从而将新的可填充/可编辑行添加到表中。问题是,当我将可编辑字段设为空字符串时,编辑字段不会显示,因此用户无法更改其内容:
// RESULTS IN NO FIELD DISPLAYED
const newCategoryRow = {
key: 'NEW',
acct: '',
description: '',
total: 0
}
// RESULTS IN FIELD DISPLAYED
const newCategoryRow = {
key: 'NEW',
acct: 'blah',
description: 'blah',
total: 0
}
有什么办法吗?
【问题讨论】: