Cannot enter negative numbers in Relation fields of Type "Number" (filtering issue)

WHAT IS THE BUG

You cannot enter negative numbers in Relation fields of Type “Number”.

HOW TO REPRODUCE IT

  1. Open Anytype Object that has at least one Relation of Type “Number”
  2. Fill in “-100” and confirm with Enter
  3. See that “100” is filled in

THE EXPECTED BEHAVIOR

I want to be able to fill in any number in the field.

SYSTEM INFORMATIONS

  • OS:
    Windows 11
  • Device:
    Dell XPS 15
  • Anytype Version:
    0.28.0

ADDITIONAL CONTEXT

As I can type letters and other characters in the field, I believe this is an unwanted side effect of filtering the contents of the field. See what happens if you type “-1a00@99” in a Number field: you end up with 10099, while you either should not be allowed to type letter and other special characters, OR the filtering should work correctly (i.e., filter out “a” and “@”, but leave the “-1” and “00” and “99”).

This issue has been added to our issue tracker and was received by the Development Team.

Oh, that’s really cool, no one entered negative numbers for like 1.5 years. Fixed it.

1 Like

This issue has been fixed by the Development Team and will be included in an upcoming release.

Fixed in 0.29.0.