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

EditableRangeSlider can not be disabled #5318

Closed
ambrustorok opened this issue Jul 25, 2023 · 0 comments · Fixed by #5319
Closed

EditableRangeSlider can not be disabled #5318

ambrustorok opened this issue Jul 25, 2023 · 0 comments · Fixed by #5319
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@ambrustorok
Copy link

ambrustorok commented Jul 25, 2023

import math
import panel as pn

pn.extension()

range_slider = pn.widgets.EditableRangeSlider(
    name='Range Slider', start=0, end=math.pi, value=(math.pi/4., math.pi/2.),
    step=0.01)

pn.Row(range_slider.controls(jslink=False), range_slider)

Click Disabled , you can still use the slider.

It is also true if you try to set range_slider.disabled=True.

Same phenomenon if you try to initialize it as disabled:

import math
import panel as pn

pn.extension()

range_slider = pn.widgets.EditableRangeSlider(
    name='Range Slider', start=0, end=math.pi, value=(math.pi/4., math.pi/2.),
    step=0.01,
    disable=True)

range_slider
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Jul 25, 2023
@philippjfr philippjfr added this to the v1.2.1 milestone Jul 25, 2023
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