Bug in date equality causes wrong initialization of dropdown with date value #6469
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/primeng-dropdown-pvgyuu?file=app%2Fapp.component.html
Current behavior
I create a dropdown in which options values are dates. The associated formControl was set an initial value : jan 1 2003. However, when the dropdown is first displayed, it shows jan 1 2001.
Expected behavior
The dropdown should show the label corresponding to the formControl value, jan 1 2003.
Minimal reproduction of the problem with instructions
Start the stackblitz
What is the motivation / use case for changing the behavior?
This behavior is due to a bug in date equality in ObjectUtils.ts
Please tell us about your environment:
standard
Angular version: 6.1.7
PrimeNG version: 6.1.3
Browser: all
Language: all
The text was updated successfully, but these errors were encountered: