Remove logs
This commit is contained in:
parent
0bda4a1952
commit
32108abbc0
|
@ -56,10 +56,7 @@
|
|||
isActive: () => api?.isActive?.() ?? false,
|
||||
onKeyDown: (...params) => api?.onKeyDown(...params),
|
||||
isReadonly: () => readonly,
|
||||
getType: () => {
|
||||
console.log("getType", column)
|
||||
return column.schema.type
|
||||
},
|
||||
getType: () => column.schema.type,
|
||||
getValue: () => row[column.name],
|
||||
setValue: (value, options = { save: true }) => {
|
||||
validation.actions.setError(cellId, null)
|
||||
|
|
|
@ -212,10 +212,8 @@
|
|||
|
||||
// Focuses the cell and starts entering a new value
|
||||
const startEnteringValue = (key, keyCode) => {
|
||||
console.log("start", $focusedCellAPI, $focusedCellAPI.isReadonly())
|
||||
if ($focusedCellAPI && !$focusedCellAPI.isReadonly()) {
|
||||
const type = $focusedCellAPI.getType()
|
||||
console.log(type)
|
||||
if (type === "number" && keyCodeIsNumber(keyCode)) {
|
||||
// Update the value locally but don't save it yet
|
||||
$focusedCellAPI.setValue(parseInt(key), { save: false })
|
||||
|
|
Loading…
Reference in New Issue