Skip to content

Commit 12ec7f4

Browse files
edcarrollmcosta74
authored andcommitted
fix(datepicker): Fixed focus out duplication issue
1 parent 0ffddf3 commit 12ec7f4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/modules/datepicker/components/datepicker.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, HostBinding } from "@angular/core";
1+
import { Component, HostBinding, HostListener } from "@angular/core";
22
import { CalendarService } from "./../services/calendar.service";
33
import { DatetimeConfig } from "../classes/calendar-config";
44
import { SuiLocalizationService } from "../../../behaviors/localization/index";
@@ -43,4 +43,9 @@ export class SuiDatepicker {
4343

4444
this._calendarClasses = true;
4545
}
46+
47+
@HostListener("mousedown", ["$event"])
48+
public onMouseDown(e:MouseEvent):void {
49+
e.preventDefault();
50+
}
4651
}

0 commit comments

Comments
 (0)