Skip to content

Commit 314635c

Browse files
committed
bug fixed #389
1 parent 21f3709 commit 314635c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

packages/ve-table/src/index.jsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -974,11 +974,15 @@ export default {
974974

975975
// table blur
976976
tableBlur() {
977-
// reset cell selection key data
978-
this.cellSelectionKeyData = {
979-
rowKey: "",
980-
columnKey: ""
981-
};
977+
const { rowKey, columnKey } = this.cellSelectionKeyData;
978+
979+
if (!isEmptyValue(rowKey) || !isEmptyValue(columnKey)) {
980+
// reset cell selection key data
981+
this.cellSelectionKeyData = {
982+
rowKey: "",
983+
columnKey: ""
984+
};
985+
}
982986
}
983987
},
984988
mounted() {

0 commit comments

Comments
 (0)