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

UI InputField allows negative numbers as input when starting value is 0 #433

Open
yavin87 opened this issue Dec 14, 2022 · 0 comments
Open
Assignees
Labels
defect Broken feature or bug

Comments

@yavin87
Copy link
Collaborator

yavin87 commented Dec 14, 2022

Describe the defect
For example in the experiment Falling Coil the UI InputField "Ring Resistance" allows negative numbers as input when the associated slider value is set to 0. This value does not reset when using the Reset Simulation button. However it has no influence on the experiment and is purely a cosmetic UI issue since the underlying setter uses the slider's value.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Falling Coil experiment
  2. Make sure the slider is set to zero and click on input field "Ring Resistence"
  3. Enter any negative number
  4. The negative number is now displayed and won't reset when clicking the Reset button.

Expected behavior
No negative numbers are allowed (and thereby the input field will automatically always reset)

Found in version
The version where the defect was detected [e.g. v4.1 build 20210224]

Screenshots
image

Version

  • WebGL 20211213
  • Unity Editor Playmode on develop branch (last commit: 20th Sept 22)
@yavin87 yavin87 added the defect Broken feature or bug label Dec 14, 2022
@yavin87 yavin87 self-assigned this Dec 14, 2022
@yavin87 yavin87 changed the title Falling Coil UI: InputField "Ring Resistance" allows negative numbers as input when slider value is 0 UI InputField allows negative numbers as input when starting value is 0 Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Broken feature or bug
Projects
None yet
Development

No branches or pull requests

1 participant