aavanzyl / ngx-tiny

Implementation of Light Weight Angular Components for Production Applications
https://aavanzyl.github.io/ngx-tiny
MIT License
7 stars 3 forks source link

date-picker valueChange emits twice #8

Closed jonathan-chin closed 4 years ago

jonathan-chin commented 4 years ago

I was trying to debug this on my side but it seems that (valueChange) gets emitted twice.

looking at the website documentation and running the live example there, I see it also gets triggered twice:

// https://aavanzyl.github.io/ngx-tiny/project/date-picker
Wed Jan 08 2020 00:00:00 GMT-0500 (Eastern Standard Time)
Wed Jan 08 2020 00:00:00 GMT-0500 (Eastern Standard Time)
Sat Jan 11 2020 00:00:00 GMT-0500 (Eastern Standard Time)
Sat Jan 11 2020 00:00:00 GMT-0500 (Eastern Standard Time)

is this a side effect of something else? can this be avoided at all?

JLNNN commented 4 years ago

I'm experiencing the same behaviour.

aavanzyl commented 4 years ago

@JLNNN & @jonathan-chin This has been addressed in the latest version

JLNNN commented 4 years ago

confirmed, thank you!