Clearing a numeric field gives error when saving [2020:O]

Issue #387 closed
Brian Lewis repo owner created an issue

The cleared value of the field is an empty string - which is a type mismatch when applied to the numeric field at the server.

All empty strings returned from the client - regardless of the data type of the field - should be interpreted as null when saved

Comments (7)

  1. Brian Lewis reporter

    On the other hand, if the input is defined as type=number then we get back a null when clearing the field as expected.

    This should perhaps be the preferred way to resolve this?

  2. Brian Lewis reporter

    IE 11 has issues with input="number", so we should probably not rely on the browser client resolving this?

  3. Ghislain Hachey

    IE 11 has issues with input="number", so we should probably not rely on the browser client resolving this?

    @softwords What exactly is the issue and how does it affect the user?

  4. Brian Lewis reporter

    Accept that we use <input type = number whenever we have numeric data. This gives the correct result; in particular, null when cleared not '' .

    Support now for IE11 vicissitudes not a priority.

  5. Log in to comment