survey-creator icon indicating copy to clipboard operation
survey-creator copied to clipboard

Month input type misbehaving

Open Aj-Patterson-KP opened this issue 1 year ago • 0 comments

Are you requesting a feature, reporting a bug or ask a question?

Reporting a bug

What is the current behavior?

  1. When a user selects January as a month, it gets changed to December of the previous year.
  2. Other than the above, the date picker saves data correctly, but it is not displayed. To the user, the answer appears to have reverted back to the default state.
  3. When a user types to select a month and year instead of using date picker, the answer is only saved if they hit enter, not when they tab to another question or click away.
  4. Firefox users have no date picker and month names are not accepted. They must type their answer in the format "yyyy-mm", and then a month is subtracted. For example, typing "2023-05" results in "2023-4"

What is the expected behavior?

  1. A month selection should never be modified (bullets 1 and 4 of above)
  2. Data correctly saved in the form should be displayed to the user
  3. Tabbing away from input should accept the input instead of resetting it.

How would you reproduce the current behavior (if this is a bug)?

First, Create a form with a single Month input field. Then

For January bug:

  1. Select January of any year

For Date picker bug:

  1. Use the date picker to select June of any year

For Tab bug:

  1. Type June 2020 into the field
  2. Press tab

For Firefox:

  1. Preview the form

Specify your

  • browser: Firefox, Chrome
  • editor version:

Aj-Patterson-KP avatar Aug 07 '24 01:08 Aj-Patterson-KP