File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
projects/igniteui-angular/src/lib/calendar Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ <h2 class="igx-calendar__header-date">
45
45
46
46
< div style ="display: flex "
47
47
[@animateChange] ="animationAction "
48
- (@animateChange.done) ="animationDone($event) " (pointerup) =" $event.stopPropagation() " >
48
+ (@animateChange.done) ="animationDone($event) ">
49
49
< igx-days-view *ngFor ="let view of monthsViewNumber | IgxMonthViewSlots; index as i; " [changeDaysView] ="true " #days
50
50
[selection] ="selection "
51
51
[locale] ="locale "
Original file line number Diff line number Diff line change @@ -934,8 +934,8 @@ export class IgxCalendarComponent extends IgxMonthPickerBaseDirective implements
934
934
}
935
935
}
936
936
937
- @HostListener ( 'document:pointerup ' )
938
- public pointerUp ( ) {
937
+ @HostListener ( 'document:click ' )
938
+ public outSideClick ( ) {
939
939
this . resetActiveDate ( ) ;
940
940
}
941
941
Original file line number Diff line number Diff line change @@ -159,9 +159,10 @@ export class IgxDayItemComponent {
159
159
160
160
constructor ( private elementRef : ElementRef ) { }
161
161
162
- @HostListener ( 'click' )
163
- @HostListener ( 'keydown.enter' )
164
- public onSelect ( ) {
162
+ @HostListener ( 'click' , [ '$event' ] )
163
+ @HostListener ( 'keydown.enter' , [ '$event' ] )
164
+ public onSelect ( event ) {
165
+ event . stopPropagation ( ) ;
165
166
this . onDateSelection . emit ( this . date ) ;
166
167
}
167
168
}
You can’t perform that action at this time.
0 commit comments