Open ollyhensby opened 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:
Change to 1:
Revert but stays at 1:
Expected behavior Expect that by pressing revert, the values will change back to how they were.
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?
fns_on_revert
WrapSaveButtonBar
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](https://github.com/maxfordham/ipyautoui/assets/79875276/dabbbdc8-c230-45d9-b880-94b3a03533d1)
Change to 1:![image](https://github.com/maxfordham/ipyautoui/assets/79875276/e93919ca-e498-4465-8e51-c9117bf8c221)
Revert but stays at 1:![image](https://github.com/maxfordham/ipyautoui/assets/79875276/f97a9838-0ade-48e1-9cea-d71284cfddbe)
Expected behavior Expect that by pressing revert, the values will change back to how they were.