maxfordham / ipyautoui

create ipywidgets user input form pydantic model or jsonschema
https://maxfordham.github.io/ipyautoui/
38 stars 5 forks source link

🐛 Nullable fields still showing in AutoObject #315

Closed ollyhensby closed 2 months ago

ollyhensby commented 2 months ago

Describe the bug Some Nullable fields keep showing in AutoObject even if the value is None when using EditGrid.

This appears to be because for some data types, the data frame returns nan instead of None.

The issue appears to be caused by this commit: https://github.com/maxfordham/ipyautoui/commit/e986b9a4ca287f82e733502b10faa07aa9bbc198

Expected behaviour I expect the fields be hidden when either nan or None.