Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about @hotlistener #340

Open
hamundnic opened this issue Dec 14, 2018 · 0 comments
Open

about @hotlistener #340

hamundnic opened this issue Dec 14, 2018 · 0 comments

Comments

@hamundnic
Copy link

hamundnic commented Dec 14, 2018

in the @Hotlistener we have the event e:MouseEvent => e.target ,when you are clicked over one day return this. <span _ngcontent-c6="" class="day-unit" ng-reflect-klass="day-unit" ng-reflect-ng-class="[object Object]"> 21 </span> as object , but when you use and compare with thre property input we have to different result like <input _ngcontent-c6 class=​"ngx-datepicker-input ng-pristine ng-valid ng-touched" readonly type=​"text" ng-reflect-klass=​"ngx-datepicker-input" ng-reflect-ng-class=​"[object Object]​" ng-reflect-ng-style=​"[object Object]​" ng-reflect-model=​"Dez 21, 2018" placeholder id=​"datepicker-0">​ as result of the const input = this.elementRef.nativeElement.querySelector('.ngx-datepicker-input');
both are total different kind of object . my question is how can i take the result direct for the "" like for comparing with the e.target . because each time when i make a event.emit( property) when i make click out of the number , the event emitter emit again the same date and make full of the array which the same date .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant