fix: datepicker trigger scroll in safari #4323

pull/4334/head
tangjinzhou 2021-07-06 10:40:11 +08:00
parent 40c4b80f69
commit 761f6a6661
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ const Picker = defineComponent({
updated() {
if (!this.preSOpen && this.sOpen) {
// setTimeout is for making sure saveCalendarRef happen before focusCalendar
this.focusTimeout = setTimeout(this.focusCalendar, 0);
this.focusTimeout = setTimeout(this.focusCalendar, 100);
}
this.preSOpen = this.sOpen;
},