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

Disable +/- in st.number_input if at min/max value #3493

Merged

Conversation

tconkling
Copy link
Contributor

Fixes #3047

@tconkling tconkling requested a review from a team June 29, 2021 15:49
@@ -44,14 +44,13 @@ export const StyledInputControl = styled.button(({ theme }) => ({
border: "none",
height: theme.sizes.full,
display: "flex",
cursor: "pointer",
Copy link
Contributor Author

@tconkling tconkling Jun 29, 2021

Choose a reason for hiding this comment

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

I removed this because it is unnecessary - the cursor is always a pointer when over an enabled button (and an arrow otherwise).

@tconkling tconkling requested a review from kantuni June 29, 2021 18:07
Copy link
Collaborator

@kantuni kantuni left a comment

Choose a reason for hiding this comment

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

👍

@tconkling tconkling merged commit b15c523 into streamlit:develop Jun 29, 2021
@tconkling tconkling deleted the tim/NumberInputDisablePlusMinus branch June 29, 2021 19:03
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.

Disable +/- in st.number_input if at min/max value
2 participants