Component: pCalendar: Date becomes empty string if dataType="string is specified #14574
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
When changing a date inside a table with the
p-calendar
component, if thedataType="string"
is specified the[(ngModel)]
of the component returns an empty string instead of the date.Environment
Angular
Reproducer
https://stackblitz.com/edit/github-y9uamu-cbuqcz?file=src%2Fapp%2Fapp.component.html
Angular version
17.0.7
PrimeNG version
17.3.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.17.0
Browser(s)
Chrome 120.0.6099.217
Steps to reproduce the behavior
p-table
p-calendar
component into an editable field of the tabledataType="string"
Expected behavior
The dates in the Date (Data Type String) column should be maintained in the calendar input box when clicked.
The text was updated successfully, but these errors were encountered: