I'm submitting a ... (check one with "x")
[ ] bug report => Search github for a similar issue or PR before submitting
[X] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
When adding required or required="true", the p-calendar element has the required attribute - however the input that is nested in the calendar does not. This means that the form will still submit even without filling in the field.
This is similar to a previous request for p-dropdowns (which works great): #230
Ability to add required or required="true" to p-calendar and have HTML5 pick up the field as part of its validation.
What is the motivation / use case for changing the behavior?
Using simple HTML5 validation is all my application requires, this makes it difficult to require date fields without creating various work-arounds.
Angular version: 2.1.2
PrimeNG version: 1.0.0