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

[BUG] Dropdown doesnt update properly when .menu changed in 3.4 #13766

Open
measty opened this issue Mar 15, 2024 · 0 comments · May be fixed by #13833
Open

[BUG] Dropdown doesnt update properly when .menu changed in 3.4 #13766

measty opened this issue Mar 15, 2024 · 0 comments · May be fixed by #13833

Comments

@measty
Copy link

measty commented Mar 15, 2024

Software versions

Python version : 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0]
IPython version : 8.18.1
Tornado version : 6.3.3
Bokeh version : 3.4.0
BokehJS static path : .../anaconda3/envs/tiatoolbox-latest/lib/python3.10/site-packages/bokeh/server/static
node.js version : (not installed)
npm version : (not installed)
jupyter_bokeh version : (not installed)
Operating system : Linux-6.5.0-15-generic-x86_64-with-glibc2.38

Browser name and version

No response

Jupyter notebook / Jupyter Lab version

No response

Expected behavior

Code that previously worked with bokeh 3.3 does not work with 3.4. Expect drop-down menu to change when we change the .menu attribute (i.e when button clicked in example below) but it is not updated.

probably related to #13755

Observed behavior

drop-down menu doesn't change

Example code

from bokeh.io import curdoc
from bokeh.models import Dropdown, Column, Button

d = Dropdown(label="foo", menu=["foo", "bar"])
b = Button(label="Button")

def change_menu(event):
    print("changing menu")
    d.menu = ["foo", "bar", "baz"]

b.on_click(change_menu)

column = Column(children=[d, b])

curdoc().add_root(column)

Stack traceback or browser console output

No response

Screenshots

No response

@measty measty added the TRIAGE label Mar 15, 2024
@measty measty changed the title [BUG] Dropdown doesnt update properly when .menu changed [BUG] Dropdown doesnt update properly when .menu changed in 3.4 Mar 15, 2024
@mattpap mattpap added this to the 3.5 milestone Mar 15, 2024
@hunter7lee hunter7lee linked a pull request Apr 22, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants