Skip to content

Commit 4c66da6

Browse files
committed
chore(*): clear up some leftover logic
1 parent cc749c4 commit 4c66da6

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Diff for: projects/igniteui-angular/src/lib/calendar/calendar.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h2 class="igx-calendar__header-date">
4545

4646
<div style="display: flex"
4747
[@animateChange]="animationAction"
48-
(@animateChange.done)="animationDone($event)" (pointerup)="$event.stopPropagation()" >
48+
(@animateChange.done)="animationDone($event)">
4949
<igx-days-view *ngFor="let view of monthsViewNumber | IgxMonthViewSlots; index as i;" [changeDaysView]="true" #days
5050
[selection]="selection"
5151
[locale]="locale"

Diff for: projects/igniteui-angular/src/lib/calendar/calendar.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -934,8 +934,8 @@ export class IgxCalendarComponent extends IgxMonthPickerBaseDirective implements
934934
}
935935
}
936936

937-
@HostListener('document:pointerup')
938-
public pointerUp() {
937+
@HostListener('document:click')
938+
public outSideClick() {
939939
this.resetActiveDate();
940940
}
941941

Diff for: projects/igniteui-angular/src/lib/calendar/days-view/day-item.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ export class IgxDayItemComponent {
159159

160160
constructor(private elementRef: ElementRef) { }
161161

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();
165166
this.onDateSelection.emit(this.date);
166167
}
167168
}

0 commit comments

Comments
 (0)