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

ChoiceItem radio buttons are duplicated when using callbacks #73

Closed
PierreRaybaut opened this issue Apr 8, 2024 · 0 comments
Closed
Assignees
Labels

Comments

@PierreRaybaut
Copy link
Collaborator

Description

When using the ChoiceItem component with a callback in a DataSet, and displaying
the DataSet with a DataSetEditGroupBox, the radio buttons are duplicated when the
callback is triggered at initialization.

Solution

During initialization, the DataSetEditGroupBox calls the DataSet's get method
which triggers the callback and reinitializes the ChoiceItem widget. The radio
buttons are then destroyed and recreated, but the old ones are still visible (their
destruction is handled but in a deferred way).

This can be fixed by simply hiding those old radio buttons in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant