bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Strict parsing for `DateField` does not work when format of parser are changed. #10073

Open chuckn0rris opened 1 week ago

chuckn0rris commented 1 week ago

Forum post

Hi,

While in Japanese Locale, strictParsing config for dateField does not throw an error message in a certain case. Please check the following details to reproduce.

Steps to Reproduce. In Japanese Locale, change parsers format to the following.

parsers: {
      L: 'YYYY/MM/DD',
  }

enable


strictParsing : true
``` to a dateField.

Try Removing the 'DD' date part from the dateField.

Expected : When the date part is removed. it should throw an error message.
Actual :  it doesn't throw any errors.

Please take a look into this. Thank you.

Here's a small demo

When I remove date, it doesnt throw errors.
When I remove month, it throws errors.
![strictParsing.gif](https://forum.bryntum.com/download/file.php?id=30816)
![strictParsing.gif](https://forum.bryntum.com/download/file.php?id=30816)