Maroon
Maroon copied to clipboard
UI InputField allows negative numbers as input when starting value is 0
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:
- Go to Falling Coil experiment
- Make sure the slider is set to zero and click on input field "Ring Resistence"
- Enter any negative number
- 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
Version
- WebGL 20211213
- Unity Editor Playmode on develop branch (last commit: 20th Sept 22)