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