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

Closable tabs not always displaying widgets #3064

Closed
c-dives opened this issue Jan 5, 2022 · 0 comments · Fixed by #3301
Closed

Closable tabs not always displaying widgets #3064

c-dives opened this issue Jan 5, 2022 · 0 comments · Fixed by #3301
Labels
type: bug Something isn't correct or isn't working

Comments

@c-dives
Copy link

c-dives commented Jan 5, 2022

ALL software version info

panel - 0.12.6
bokeh - 2.4.2
python - 3.9
firefox - 95.0.1
ubuntu - 20.04.3 LTS

Description of expected behavior and the observed behavior

Expected: Removing all tabs using the closable X and then adding a tab will display the contents of the new tab.

Observed: Removing all tabs using the closable X (Browser javascript console shows error after last tab is closed.) and then adding one or more tabs will display the tab title only, contents are not displayed until after clicking on the tab title.

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn

add_button = pn.widgets.Button(name='Add Tab')
some_tabs = pn.Tabs(closable=True)

def add_button_callback(*_):
    some_tabs.append(pn.widgets.StaticText(name='Some Title', value="Some Text"))
add_button.on_click(add_button_callback)
col = pn.Column(add_button, some_tabs)
col.servable()

Stack traceback and/or browser JavaScript console output

tabs_example

Screenshots or screencasts of the bug in action

tabs_example.mp4
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants