Hello,
I'm using ParamQuery Pro v10.1.0
I'm encountering a bug when editing a cell with `dataType: "string"` — even though the column is not a date field, the following error occurs **after I delete the cell content** using Backspace or **enter only spaces**, then press **Tab** to move to another cell.
Here is the console error:
Uncaught TypeError: can't access property 0, f is null
at parseDateFromFmt (pqgrid.dev.js:1883)
at parseDate (pqgrid.dev.js:1899)
at deformat (pqgrid.dev.js:2835)
at getEditCellData (pqgrid.dev.js:3487)
at saveEditCell (pqgrid.dev.js:3044)
at saveAndMove (pqgrid.dev.js:4354)
### Reproduction Steps:
1. The column has `dataType: "string"`, no special `editor.format` or custom parse logic.
2. Enter any value in the cell, then delete it using Backspace and press Tab.
3. OR enter only space characters (`" "`), then press Tab.
4. This throws the error above.
---
### What I Tried:
I attempted to sanitize the value using `beforeCellSave`:
beforeCellSave: function (evt, ui) {
if (typeof ui.newVal === 'string' && ui.newVal.trim() === '') {
ui.newVal = null;
}
}
Unfortunately, this **did not fix** the issue.
The error still occurs, and strangely, `parseDateFromFmt()` is triggered even though the column is not a date field.
---
### What I Need Help With:
* Why is `parseDateFromFmt` called at all for a `dataType: "string"` column?
* What’s the proper way to prevent this error when the cell is cleared or contains only whitespace?
* Is this a known issue or do I need to override some internal formatter?
Any guidance or recommended workaround would be greatly appreciated.
**Can I record a short video showing the issue and send it to you via email?**
Thanks in advance.
colmodel sampla
,{title:'Sample',dataIndx:'vdata',dataType:'string',minWidth:24,width: 200,cls:'',clsHead:'',align:'',halign:'center',aciklama:'vdata',hidden:false,editable:true
,filter: { crules: [{ condition:'contain'}],menuIcon:false}
}