formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

[BUG] Pattern error message on number and currency components

Open RajamArunachalam opened this issue 2 years ago • 2 comments

1. NUMBER COMPONENT:

ISSUE:

Number component is allowing both negative and positive input, but for negative inputs, pattern error message gets displayed while we hover on it.

image


REASON:

The pattern applied for the input element should be changed and is not including negative inputs.


image

2. CURRENCY COMPONENT:

ISSUE:

If the currency type having dollar symbol on it, was chosen, then for any input, pattern error message gets displayed while hover on it.

image


REASON:

The pattern applied for the input element should be changed and is considering '$' as an starting of regex instead as an input character.

image



STEPS TO REPRODUCE:
NUMBER COMPONENT:

  1. Go to the official demo site of Formiojs.
  2. Drag and drop a number component.
  3. Give negative input and hover on it.

CURRENCY COMPONENT:

  1. Go to the official demo site of Formiojs.
  2. Drag and drop a currency component with any currency type having dollar symbol on it.
  3. Give any input and hover on it.

RajamArunachalam avatar Apr 28 '23 05:04 RajamArunachalam

We have created a ticket for review. If you would like to provide a pull request we would review it as a possible solution to this issue. Ticket for internal tracking: FIO-8925

daneformio avatar Aug 21 '24 13:08 daneformio

After review, we don't expect to resource a developer to investigate this in the near future but would be happy to review any contributions to resolve this behavior.

lane-formio avatar Aug 26 '24 16:08 lane-formio