Skip to content

[BUG] Dash 4.0.0 number dcc.Input increment doesn't work when max or min = None #3689

@aGitForEveryone

Description

@aGitForEveryone

When setting the min or max option in a dcc.Input the increment button stops working. Clicking it erases the current value in the input box. Try with the simple app added below. The increment buttons don't work for the top input field, but they do work for the bottom input field.

I used Dash 4.0.0 for testing.

import dash
from dash import html, dcc

app = dash.Dash(__name__)


app.layout = html.Div(
    [
        html.H1("Hello Dash"),
        dcc.Input(min=0, max=None, type="number"),
        dcc.Input(min=0, type="number"),
    ],
    style={"width": "20%"},
)

app.run(debug=True)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions