Skip to content

Fix number input spinner when only min is set - #3922

Open
AnnMarieW wants to merge 4 commits into
plotly:devfrom
AnnMarieW:fix-input
Open

Fix number input spinner when only min is set#3922
AnnMarieW wants to merge 4 commits into
plotly:devfrom
AnnMarieW:fix-input

Conversation

@AnnMarieW

@AnnMarieW AnnMarieW commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Closes #3921

Fix dcc.Input(type="number") stepper behavior when only min is set.

Fixed typo in number input stepper constraint check from PR #3690

Also I noticed that onKeyPress is deprecated and replaced it with onKeyDown

@KoolADE85 KoolADE85 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks AnnMarie, looks good here 💃

Comment thread components/dash-core-components/tests/integration/input/test_number_input.py Outdated
@AnnMarieW

Copy link
Copy Markdown
Collaborator Author

@KoolADE85 I made one more change after you reviewed - to replace the deprecated onKeyPress. Is that ok?

…umber_input.py

Co-authored-by: Adrian Borrmann <hello@adrianborrmann.com>
@sonarqubecloud

Copy link
Copy Markdown

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

Successfully merging this pull request may close these issues.

dcc.Input(type="number", min=...) erases value on spinner step (regression of #3689)

2 participants