Maroon icon indicating copy to clipboard operation
Maroon copied to clipboard

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

Open yavin87 opened this issue 1 year ago • 0 comments

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 avatar Dec 14 '22 21:12 yavin87