Skip to content

Commit

Permalink
修复table编辑后确认数据丢失问题
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCole21 committed Aug 21, 2020
1 parent 7a87f7d commit 8c64474
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderers/Form/Table.tsx
Expand Up @@ -244,7 +244,8 @@ export default class FormTable extends React.Component<TableProps, TableState> {
const scaffold = this.props.scaffold;
this.setState({
editIndex: index,
editting: editting || (value && value[index]) || scaffold || {},
editting: this.editting =
editting || (value && value[index]) || scaffold || {},
isCreateMode: isCreate,
columns:
this.state.isCreateMode === isCreate
Expand Down

0 comments on commit 8c64474

Please sign in to comment.