Skip to content

Conversation

crschardt
Copy link
Contributor

@crschardt crschardt commented Dec 23, 2024

This PR changes the text input fields to allow a user to type in a value and press enter (or click away) before the UI registers the updated value. It makes text input behave in a more expected manner. The spin buttons are no longer shown for the text box. Instead, there are up and down buttons on either side of the slider.

The only thing that I can't figure out is a way to make the up and down buttons continuously increment (decrement) the value if you click and hold. I'm not sure that this is required, but if someone wants to propose a solution, please add it to this PR.

@crschardt crschardt requested a review from a team as a code owner December 23, 2024 04:51
@crschardt crschardt merged commit 5df189d into main Dec 23, 2024
34 checks passed
@crschardt crschardt deleted the make-text-inputs-lazy branch December 23, 2024 05:25
mcm001 pushed a commit to mcm001/photonvision that referenced this pull request Feb 18, 2025
This PR changes the text input fields to allow a user to type in a value and press enter (or click away) before the UI registers the updated value. It makes text input behave in a more expected manner.  The spin buttons are no longer shown for the text box. Instead, there are up and down buttons on either side of the slider.

The only thing that I can't figure out is a way to make the up and down buttons continuously increment (decrement) the value if you click and hold. I'm not sure that this is required, but if someone wants to propose a solution, please add it to this PR.
@Gold856 Gold856 added the frontend Having to do with PhotonClient and its related items label Jul 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Having to do with PhotonClient and its related items
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants