You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the options of the combobox change, and previously some value has been selected, the previously selected value is also seen in the new options, under a line.
But the issue is that, it allows that value to also be selected - but that is not a part of the new options of the combobox.
To reproduce,
import ipywidgets as widgets
from IPython.display import display
combo.options = options2
combo.placeholder = 'Displaying Options2 on click'
After executing this, the expected behaviour is to display the placeholder, or the first element in options2.
But still the older selected value is displayed - even though its not in options2.
Deleting it and clicking to see the options displays the older selection in the last row, and allows it to be selected
The text was updated successfully, but these errors were encountered:
When the options of the combobox change, and previously some value has been selected, the previously selected value is also seen in the new options, under a line.
But the issue is that, it allows that value to also be selected - but that is not a part of the new options of the combobox.
To reproduce,
import ipywidgets as widgets
from IPython.display import display
options1 = ['1', '2', '3', '4', '5']
options2 = ['11', '12', '13', '14', '15']
combo = widgets.Combobox(options = options1, placeholder = 'Displaying Options1 on click')
display(combo)
Click on any option, and then:
combo.options = options2
combo.placeholder = 'Displaying Options2 on click'
After executing this, the expected behaviour is to display the placeholder, or the first element in options2.
But still the older selected value is displayed - even though its not in options2.
Deleting it and clicking to see the options displays the older selection in the last row, and allows it to be selected
The text was updated successfully, but these errors were encountered: