修复 Table 编辑时失去焦点的问题

This commit is contained in:
liaoxuezhi 2019-06-27 20:22:24 +08:00
parent a81a7284ea
commit f3b7e9ed10

View File

@ -533,7 +533,9 @@ export default class FormTable extends React.Component<TableProps, TableState> {
}
getEntryId(entry:any) {
if (!this.entries.has(entry)) {
if (entry === this.state.editting) {
return "editing";
} else if (!this.entries.has(entry)) {
this.entries.set(entry, this.entityId++);
}