fix: apply updated cell value after value sorting
parent
1aa7a026e9
commit
37632982a9
|
@ -311,12 +311,12 @@ export default {
|
||||||
this.selfClick = false;
|
this.selfClick = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
document.addEventListener('click', this.documentEditListener);
|
document.addEventListener('mousedown', this.documentEditListener);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
unbindDocumentEditListener() {
|
unbindDocumentEditListener() {
|
||||||
if (this.documentEditListener) {
|
if (this.documentEditListener) {
|
||||||
document.removeEventListener('click', this.documentEditListener);
|
document.removeEventListener('mousedown', this.documentEditListener);
|
||||||
this.documentEditListener = null;
|
this.documentEditListener = null;
|
||||||
this.selfClick = false;
|
this.selfClick = false;
|
||||||
}
|
}
|
||||||
|
@ -329,8 +329,6 @@ export default {
|
||||||
},
|
},
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
if (this.editMode === 'cell' && this.isEditable()) {
|
if (this.editMode === 'cell' && this.isEditable()) {
|
||||||
this.selfClick = true;
|
|
||||||
|
|
||||||
if (!this.d_editing) {
|
if (!this.d_editing) {
|
||||||
this.d_editing = true;
|
this.d_editing = true;
|
||||||
this.bindDocumentEditListener();
|
this.bindDocumentEditListener();
|
||||||
|
|
Loading…
Reference in New Issue