fix: date UTC conversion issue
fix: `type.create` index offset issue
This commit is contained in:
@ -768,7 +768,10 @@ export class GridDateColumn extends GridColumn {
|
||||
* @returns {string}
|
||||
*/
|
||||
static getValue(e, col) {
|
||||
return getDateValue(e.target, col.dateValueFormatter);
|
||||
if (e.target.tagName === 'INPUT') {
|
||||
return getDateValue(e.target, col.dateValueFormatter);
|
||||
}
|
||||
return e.target.innerText;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2652,7 +2652,7 @@ export class Grid {
|
||||
if (!readonly && GridColumnTypeEnum.isAlwaysEditing(col.type)) {
|
||||
element = type.createEdit(e => this._onRowChanged(e, exists + i, col, e.target.checked, cell), col, exists + i);
|
||||
} else {
|
||||
element = type.create(col, i, this);
|
||||
element = type.create(col, exists + i, this);
|
||||
if (typeof col.class === 'string') {
|
||||
type.setClass(element, col.class);
|
||||
}
|
||||
|
Reference in New Issue
Block a user