You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Input with [nbDatepicker]="datePicker" and Reactive Form. The validation rule is not defined and there is no required keyword in the template but leaving the input field empty makes the form invalid. The form is valid if date is entered.
Expected behavior:
A form with input empty (null) should be valid if it's not required and there is no validation rule.
Steps to reproduce:
1- Create Reactive Form with input having date picker.
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
Using Input with
[nbDatepicker]="datePicker"
and Reactive Form. The validation rule is not defined and there is norequired
keyword in the template but leaving the input field empty makes the form invalid. The form is valid if date is entered.Expected behavior:
A form with input empty (null) should be valid if it's not required and there is no validation rule.
Steps to reproduce:
1- Create Reactive Form with input having date picker.
Related code:
StackBlitz StackBlitz Project
Note: Leave the field empty and click submit which is not clickable and then enter
2019-05-05
and you will see alert.The text was updated successfully, but these errors were encountered: