maxfordham / ipyautoui

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

🐛 Revert not working #304

Open ollyhensby opened 3 months ago

ollyhensby commented 3 months ago

Describe the bug Pressing revert does not revert the values correctly.

To Reproduce Made a change to the slider within a nested object:

Slider is set to 2: image

Change to 1: image

Revert but stays at 1: image

Expected behavior Expect that by pressing revert, the values will change back to how they were.

ollyhensby commented 3 months ago

I think is because no callable is ever passed to the trait fns_on_revert of WrapSaveButtonBar. Maybe we should pass a default function that performs the revert?