From aaee2aa047e856141dce84c5d3f1cd16d9a00dcd Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 18 三月 2020 15:10:16 +0800
Subject: [PATCH] 2020-03-18

---
 src/templates/zshare/searcheditable/index.jsx |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/templates/tableshare/editable/index.jsx b/src/templates/zshare/searcheditable/index.jsx
similarity index 97%
rename from src/templates/tableshare/editable/index.jsx
rename to src/templates/zshare/searcheditable/index.jsx
index 40a23f8..027ab1e 100644
--- a/src/templates/tableshare/editable/index.jsx
+++ b/src/templates/zshare/searcheditable/index.jsx
@@ -22,7 +22,9 @@
   toggleEdit = () => {
     const editing = !this.state.editing
     this.setState({ editing }, () => {
-      if (editing) {
+      if (editing && this.input && this.input.select) {
+        this.input.select()
+      } else if (editing && this.input && this.input.focus) {
         this.input.focus()
       }
     })
@@ -36,7 +38,6 @@
         return
       }
       this.toggleEdit()
-      // handleSave({ ...record, ...values })
     })
   }
 

--
Gitblit v1.8.0