Bug(calendar): yearpicker wont show value with reactive forms #11223
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Current behavior
Using reactive forms together with
p-calendar
andview="year"
wont update the value inside input after usingform.setValue('2022')
;Currently you just see an empty string in input.
For
view="month"
this works as expected.Expected behavior
Input field of calendar should show the initialized year using
form.setValue()
.Minimal reproduction of the problem with instructions
The same code, but for month is working properly.
edit
Also if you provide an initial value, it won't display.
The text was updated successfully, but these errors were encountered: