Remove logs

This commit is contained in:
Andrew Kingston 2023-09-06 16:59:30 +01:00
parent 0bda4a1952
commit 32108abbc0
2 changed files with 1 additions and 6 deletions

View File

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

View File

@ -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 })