Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"autocomplete" editor does not allow to work with null values #4638

Open
KES777 opened this issue Nov 22, 2024 · 0 comments
Open

"autocomplete" editor does not allow to work with null values #4638

KES777 opened this issue Nov 22, 2024 · 0 comments
Labels
Possible Bug A possible bug that needs investigation

Comments

@KES777
Copy link

KES777 commented Nov 22, 2024

Describe the bug
A clear and concise description of what the bug is.

Tabulator Info

  • 6.3

Working Example
This Tabulator's code passes null value as is.

inputValues.forEach((value) => {
 if(typeof value !== "object"){
  value = {
   label:value,
   value:value,
  };
}
	
this._parseListItem(value, data, 0);
});

To Reproduce
Create Tabulator with the "list" editor and null values:

{title:"Example", field:"example", editor:"list", editorParams:{ values: [ 1, null ] } }

Expected behavior
Editor should allow to list null item/option.

It should be something like value == null || typeof value !== "object"

Screenshots
image

@KES777 KES777 added the Possible Bug A possible bug that needs investigation label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Possible Bug A possible bug that needs investigation
Projects
None yet
Development

No branches or pull requests

1 participant