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

The value of the slider component is not updated #97

Closed
rmotadutra opened this issue Oct 18, 2022 · 1 comment
Closed

The value of the slider component is not updated #97

rmotadutra opened this issue Oct 18, 2022 · 1 comment

Comments

@rmotadutra
Copy link

rmotadutra commented Oct 18, 2022

Trying to use a number input to update the slider component, but it's not possible.

Example of code:

app.layout = html.Div(
    [
        dmc.NumberInput(
            id="input_number",
            min=0,
            max=100
        ),
        dmc.Slider(
            id="slider",
            min=0,
            max=100
        )
    ],
)

@app.callback(
    Output("slider", "value"),
    Input("input_number", "value"),
)
def uptade_input_value(value):
    return value

image

@snehilvj
Copy link
Owner

@rmotadutra I don't see this problem in the latest master, so it should go away in the next release.

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