Teardown-Issue-Tracker-Maintainers / Teardown-Issue-Tracker

A public repo for the community to track issues/bugs/feature requests in Teardown.
12 stars 5 forks source link

[Bug] Editor number fields accept `NaN` #634

Open UwQ-Official opened 1 week ago

UwQ-Official commented 1 week ago

Describe the bug

If you type NaN into any editor field that expects number input it will either go to the negative integer limit (-21474836.0) or remain as nan, breaking a lot of stuff.

NaN Position https://github.com/user-attachments/assets/c2f0f6a1-71a0-476f-a561-8f66d2b07d21

NaN Skybox tint color https://github.com/user-attachments/assets/6f7bd0b0-a534-4d5c-9c65-9c424bcc5db0

Steps to reproduce the behavior

  1. Open the editor and select any element
  2. Into the pos field type NaN (not case-sensitive)
  3. Press F to focus
  4. See that element is sent to -21474836.0

-- OR --

  1. Into any number field type NaN (not case-sensitive)
  2. Press F5 to enter level
  3. See that the property is broken (more like it's completely disabled)

Expected behavior

Any text input gets ignored, including NaN

Environment

Additional context

No response

Gregory-Gregory commented 1 week ago

@UwQ-Official hi!

Thank you for reporting this issue. I have forwarded it to the QA team for further investigation.