We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8eabbcb commit 0ae7627Copy full SHA for 0ae7627
1 file changed
src/generic/datepicker-control/DatepickerControl.jsx
@@ -17,7 +17,7 @@ const timeStepMinutes = 30;
17
const scrollSelectedTimeIntoView = () => {
18
const schedule = typeof window !== 'undefined' && typeof window.requestAnimationFrame === 'function'
19
? window.requestAnimationFrame
20
- : ((cb) => setTimeout(cb, 0));
+ : ((cb) => setTimeout(() => cb(), 0));
21
22
schedule(() => {
23
const selectedItem = document.querySelector('.react-datepicker__time-list-item--selected');
0 commit comments