Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date Pickers inconsistent behavior when no fallback #3605

Open
mhenkens opened this issue Mar 24, 2023 · 0 comments
Open

Date Pickers inconsistent behavior when no fallback #3605

mhenkens opened this issue Mar 24, 2023 · 0 comments

Comments

@mhenkens
Copy link
Contributor

mhenkens commented Mar 24, 2023

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/NationalBankBelgium/stark/blob/master/CONTRIBUTING.md#got-a-question-or-problem

Current behavior

When no date fallback set in dateFormat for the datepicker, and the user insert invalid value we get an inconsistent behavior:
The date input containt text and a RequiredField error appear. This is because the date return to ngModel is undifined

Expected behavior

Get an invalid date error

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


Angular version: X.Y.Z
Stark version: X.Y.Z


Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

@mhenkens mhenkens changed the title Date Pickers inconsistent behavior Date Pickers inconsistent behavior when no fallback Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant