Entering a letter in the Year of Warranty Expiry field makes it required on Firefox

Description

During exploratory tests, I noticed that when one edits the data of a CCE inventory item and enters a non-numerical character in the "Year of Warranty Expiry" field on Firefox, the field gets cleared and then, one can't save changes, even though it's not a required field. The issue occurs only on Firefox, on Chrome, everything works correctly.

Reproduction steps:

  1. Log into the application as e.g. divo1.

  2. Go to CCE Management > CCE Inventory.

  3. Go to the edition of any item.

  4. Enter a non-numerical character in the "Year of Warranty Expiry" field.

  5. Click the "Save" button.

  6. The "This form is invalid" modal opens and the "This field must be a number" error message occurs, and the field seemingly gets cleared.

  7. Click the "Save" button.

  8. The changes aren't saved, even though the field is not an obligatory one. Instead, the "This form is invalid" modal opens and the "This field must be a number" error message occurs again.

Expected behavior:

  • After the "Year of Warranty Expiry" field is cleared, it should be possible to save the changes.

Environment

None

Activity

Show:
Joanna Bebak
January 2, 2020, 1:04 PM

The issue is still valid.

Joanna Bebak
January 10, 2019, 12:24 PM

I checked, and the issue still occurs.

Nikodem Graczewski
December 18, 2018, 10:20 AM

I agree that it is desired behavior (we could most likely improve how this works in terms of visuals). However, the bug is still valid as the input is obviously not treated as empty.

Łukasz Lewczyński
December 18, 2018, 7:51 AM

From what I remember it is normal that in the case when we have a numeric input and a user enters some letters, those letters will be removed from the input.

cc:

Assignee

Unassigned

Reporter

Joanna Bebak

Labels