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

Accodion and vard break children link #1756

Closed
ItamarShDev opened this issue Nov 10, 2020 · 1 comment
Closed

Accodion and vard break children link #1756

ItamarShDev opened this issue Nov 10, 2020 · 1 comment

Comments

@ItamarShDev
Copy link

ItamarShDev commented Nov 10, 2020

Using panel 0.10.1

In the following snippet, the linking is broken:

import panel as pn
pn.extension()

w1 = pn.widgets.Spinner(name='Text:', step=0.1)
w2 = pn.widgets.FloatSlider(name='Slider')

def update_value(elm, change):
    elm.value = change.new

w1.link(w2, {'value': update_value})

card = pn.Card(w1, w2, title='Card', background='WhiteSmoke')
card

Changing it to Row/Column fixes it:

import panel as pn
pn.extension()

w1 = pn.widgets.Spinner(name='Text:', step=0.1)
w2 = pn.widgets.FloatSlider(name='Slider')

def update_value(elm, change):
    elm.value = change.new

w1.link(w2, {'value': update_value})

row = pn.Row(w1, w2)
row
@philippjfr
Copy link
Member

philippjfr commented Nov 10, 2020

Duplicate of #1750 and fixed in #1750

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

No branches or pull requests

2 participants