Skip to content

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

@yavin87

Description

@yavin87

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)

Metadata

Metadata

Assignees

Labels

defectBroken feature or bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions