maxfordham / ipyautoui

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

🐛 Update display for nulls on value change #277

Closed ollyhensby closed 5 months ago

ollyhensby commented 5 months ago

Describe the bug When values change in AutoObject instance, some values may change from null to something valid, and the displays of the corresponding widgets should update accordingly.

Solution Add _value to the observe_show_null decorator.

https://github.com/maxfordham/ipyautoui/blob/0b26e8c09bd8d8f0746618101550d3cdecdc9666/src/ipyautoui/autoobject.py#L122-L132