fix: datepicker trigger scroll in safari #4323
parent
40c4b80f69
commit
761f6a6661
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue