Skip to content

Commit

Permalink
fix: datepicker trigger scroll in safari #4323
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jul 6, 2021
1 parent 40c4b80 commit 761f6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/vc-calendar/src/Picker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down

0 comments on commit 761f6a6

Please sign in to comment.