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

Treat value as one of fields. #152

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Conversation

YooSunYoung
Copy link
Member

Fixes #140

I came to a conclusion that value should also be treated as one of fields to avoid handling too many cases and have consistent structure of the widget state dictionary.

All additional states are also considered as fields, for example opted-out flag in the OptionalWidget or enabled flag in the SwitchWidget.

I thought about just setting 'value' to None for OptionalWidget, but then we can't save the wrapped widget state so I just made an additional flag so that the wrapped widget states can be extended.

@YooSunYoung YooSunYoung merged commit 08152f8 into handle-value-setter Dec 12, 2024
3 checks passed
@YooSunYoung YooSunYoung deleted the value-as-fields branch December 12, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant