From 5c08dabd9f1bcb87951b423df93f20e19d7111a2 Mon Sep 17 00:00:00 2001 From: ddcat1115 Date: Thu, 1 Feb 2018 11:32:27 +0800 Subject: [PATCH] remove useless code --- src/routes/Forms/TableForm.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/routes/Forms/TableForm.js b/src/routes/Forms/TableForm.js index 7eb0665f..1f73e3bf 100644 --- a/src/routes/Forms/TableForm.js +++ b/src/routes/Forms/TableForm.js @@ -23,17 +23,6 @@ export default class TableForm extends PureComponent { } index = 0; cacheOriginData = {}; - handleSubmit = (e) => { - e.preventDefault(); - this.props.form.validateFieldsAndScroll((err, values) => { - if (!err) { - this.props.dispatch({ - type: 'form/submit', - payload: values, - }); - } - }); - } toggleEditable=(e, key) => { e.preventDefault(); const newData = this.state.data.map(item => ({ ...item })); -- GitLab