fix: apply updated cell value after value sorting

pull/6984/head
KumJungMin 2024-12-22 15:23:22 +09:00
parent 1aa7a026e9
commit 37632982a9
1 changed files with 2 additions and 4 deletions

View File

@ -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();