mirror of
https://github.com/VisActor/VTable
synced 2024-11-21 17:40:10 +00:00
fix: judge if has editor
This commit is contained in:
parent
7396c9dd58
commit
d0d88325b7
@ -163,7 +163,7 @@ export function listTableChangeCellValues(
|
||||
const editor = table.getEditor(startCol + j, startRow + i);
|
||||
const oldValue = oldValues[i][j];
|
||||
const value = rowValues[j];
|
||||
const maybePromiseOrValue = editor.validateValue?.(value, oldValue) ?? true;
|
||||
const maybePromiseOrValue = editor?.validateValue?.(value, oldValue) ?? true;
|
||||
if (isPromise(maybePromiseOrValue)) {
|
||||
//TODO 处理promise的情况
|
||||
isCanChange = true;
|
||||
|
Loading…
Reference in New Issue
Block a user