-
Notifications
You must be signed in to change notification settings - Fork 947
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
Combobox options in cascade update #3681
Comments
jasongrout
added a commit
to jasongrout/ipywidgets
that referenced
this issue
Jan 28, 2023
jasongrout
added a commit
to jasongrout/ipywidgets
that referenced
this issue
Jan 28, 2023
Thanks for the report. This is fixed in #3682. |
Also just discovered this issue in 8.0.4. Thanks for resolving this @jasongrout. Just wondering when 8.0.5 will be available where this is resolved? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I built a cascade of two combobox widgets, in which the value of the first updates the options on the second. Selecting the value of the first combobox initially correctly updates the second combobox, but at every change of value in the first one, the shown options of the second are not reset and just add up. The options attribute of the object itself seems to correctly contain just the updated values, and indeed selecting an "old" value from the second combobox seems to lead to some invalid actions (i.e. the value is not recognised with


ensure_option=True
).Reproduce
here some minimal code to reproduce the issue:
in order to reproduce the issue, just select values from the first combobox.
Expected behavior
the second combobox should show just the updated options, according to the selected value in the first combobox. If Dropdown is used instead, the code seems to work properly.
Context
Troubleshoot Output
Command Line Output
If using JupyterLab
IPython : 8.8.0
ipykernel : 6.20.2
ipywidgets : 8.0.4
jupyter_client : 7.4.9
jupyter_core : 5.1.4
jupyter_server : 2.1.0
jupyterlab : 3.5.3
nbclient : 0.7.2
nbconvert : 7.2.8
nbformat : 5.7.3
notebook : 6.5.2
qtconsole : not installed
traitlets : 5.8.1
Installed Labextensions
The text was updated successfully, but these errors were encountered: