survey-creator
survey-creator copied to clipboard
Month input type misbehaving
Are you requesting a feature, reporting a bug or ask a question?
Reporting a bug
What is the current behavior?
- When a user selects January as a month, it gets changed to December of the previous year.
- 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.
- 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.
- 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?
- A month selection should never be modified (bullets 1 and 4 of above)
- Data correctly saved in the form should be displayed to the user
- 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:
- Select January of any year
For Date picker bug:
- Use the date picker to select June of any year
For Tab bug:
- Type June 2020 into the field
- Press tab
For Firefox:
- Preview the form
Specify your
- browser: Firefox, Chrome
- editor version: