Skip to content

Commit 94d08a3

Browse files
committed
Revert "fix(Datepicker) fixes bug where modal closes on calendar interaction"
This reverts commit 9237aed.
1 parent 83ad57a commit 94d08a3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

components/datepicker/datepicker.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,7 @@ export class Datepicker extends Component<DatepickerOptions> {
10761076
maxYear = opts.maxYear,
10771077
minMonth = opts.minMonth,
10781078
maxMonth = opts.maxMonth;
1079+
let html = '';
10791080

10801081
if (this._y <= minYear) {
10811082
this._y = minYear;
@@ -1090,19 +1091,12 @@ export class Datepicker extends Component<DatepickerOptions> {
10901091
}
10911092
}
10921093

1093-
setTimeout(() => {
1094-
this.drawHTML();
1095-
}, 10);
1096-
}
1097-
1098-
drawHTML() {
10991094
const randId =
11001095
'datepicker-title-' +
11011096
Math.random()
11021097
.toString(36)
11031098
.replace(/[^a-z]+/g, '')
11041099
.substr(0, 2);
1105-
let html = '';
11061100

11071101
for (let c = 0; c < 1; c++) {
11081102
if (!this.options.isDateRange) {

0 commit comments

Comments
 (0)