primeng icon indicating copy to clipboard operation
primeng copied to clipboard

this.value in calendar is sometimes a string make the code fails when calling date methods like getFullYear

Open iguissouma opened this issue 10 years ago • 3 comments

this.value in calendar is sometimes a string make the code fails when calling date methods like getFullYear

2016-11-08_10h22_39

prime-ng rc3

iguissouma avatar Nov 09 '16 10:11 iguissouma

Seems to be fixed in prime-ng rc4.

iguissouma avatar Nov 10 '16 13:11 iguissouma

Have this problem in 1.1.4. Init Calendar with date in code, then open page and you get string instead of date. But if you select any day then there is a date in this.value.

Prontsevich avatar Jan 10 '17 15:01 Prontsevich

This should be fixed in recent PrimeNG release, please try with it and if the issue persists drop a comment with along with a test case based on plunkr below and we'll review again.

http://plnkr.co/edit/VZbdZfQ7SuTV87tTkbYR

cagataycivici avatar Jun 07 '17 06:06 cagataycivici