From 28d65cf7ebfe0dd30ade6973e0634e1c8f663b63 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 28 十月 2020 16:12:20 +0800
Subject: [PATCH] 2020-10-28

---
 src/menu/components/card/cardcellcomponent/index.jsx |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/menu/components/card/cardcellcomponent/index.jsx b/src/menu/components/card/cardcellcomponent/index.jsx
index 7853bdf..0c8d9f2 100644
--- a/src/menu/components/card/cardcellcomponent/index.jsx
+++ b/src/menu/components/card/cardcellcomponent/index.jsx
@@ -405,11 +405,13 @@
   handleActionSubmit = () => {
     const { elements } = this.state
 
-    this.actionFormRef.handleConfirm().then(ele => {
+    this.actionFormRef.handleConfirm().then(res => {
       let _elements = elements.map(cell => {
-        if (cell.uuid === ele.uuid) {
-          ele = {...cell, ...ele}
-          return ele
+        if (cell.uuid === res.uuid) {
+          res = {...cell, ...res}
+          delete res.focus
+
+          return res
         }
 
         return cell

--
Gitblit v1.8.0