Describe the bug
JavaScript distinguish two types of data: null, undefined
And when the editor:"textarea" is handling 'null' value it converts value to string 'null'
I do not expect here 'null' string for null value
Tabulator Info
var tabledata = [
{id:1, country_id: 1, comment: null },
];
var table = new Tabulator("#example-table", {
height:"311px",
data: tabledata,
columns:[
{title:"ID", field:"id", width:40 },
{title:"Comment", field:"comment", editor:"textarea"},
{title:"NA", field:"not_exists", editor:"textarea"},
],
});
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When editing 'null' it should not be converted to 'null' string'
Screenshots


possible workaround
If there is null just display input's placeholder. If placeholder is not initialized, just initialize its as 'null' when value is 'null' or 'undefined' when such field does not exists.
Desktop (please complete the following information):
Hey @KES777
This is a hangover from the old jQuery days of version 3.5 where it used to take care of that for me. i have covered it in most places but that one must have slipped through.
I will fix it in the next patch release
Cheers
Oli :)
also for "autocomplete"

Hey @KES777
I have pushed a fix for this to the master branch and will in clude it in this evenings patch release
Cheers
Oli :)
I will retest when major patch release occur
Thank you.
with 4.2.1 version woks fine
but for "autocomplete" still shows undefined
Will add jsfiddle later
@KES777
but for "autocomplete" still shows undefined
Will there be an update to fix this behavior? Would be very helpful for me
this should be question to @olifolkerd
hey @webseitz
Yup, i will include it in this weekends patch release.
Cheers
Oli :)
Hey @olifolkerd
I am not 100% sure, but I think I still have the issue with version 4.2.5.
Here is the updated fiddle from @KES777 with my autocomplete code.
The problem is that Tabulator always writes "undefined" into the cell when I jump in with my tab or mouse.
booo.
I fixed it on the select editor but must have missed something on the autocomplete
I have pushed a fix for this to the master branch and will include it in this weekends patch release
Cheers
Oli :)
Thanks man, now it works great馃憤馃徎
Text Area still shows undefined
Hey @garg10may
If you are having issues relating to a different formatter please create a new issue, this one has been resolved.
Cheers
Oli :)
Most helpful comment
Thanks man, now it works great馃憤馃徎