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

Empty Boolean values are treated as 'false' instead of undefined #222

Open
jeremylyng opened this issue Nov 15, 2023 · 2 comments
Open

Empty Boolean values are treated as 'false' instead of undefined #222

jeremylyng opened this issue Nov 15, 2023 · 2 comments
Labels
feature Improvement input control v5 Will be solved in v5

Comments

@jeremylyng
Copy link

Appreciate your work on this project all!

As the title suggests, I'm encountering an issue when uploading a file that contains a boolean column. In the dataset, empty values haven't been defined, where as false & true should set the value accordingly. When I upload the file, the empty values return false instead.

@masiulis masiulis added the feature Improvement label Nov 17, 2023
@masiulis
Copy link
Contributor

Hey @jeremylyng, currently that is not possible with checkbox field. But we could add a flag preserveUndefined to the checkbox field definition and if this flag is enabled then leave undefined instead of converting it to false. PRs are welcome for this.

@jeremylyng
Copy link
Author

Thanks @masiulis a flag would work well. Unfortunately, I have a bit too much on my plate at the moment to help contribute.

@masiulis masiulis added the v5 Will be solved in v5 label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Improvement input control v5 Will be solved in v5
Projects
None yet
Development

No branches or pull requests

2 participants