Skip to content

Commit 0ae7627

Browse files
committed
fix: resolve implied eval lint error
1 parent 8eabbcb commit 0ae7627

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/generic/datepicker-control/DatepickerControl.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const timeStepMinutes = 30;
1717
const scrollSelectedTimeIntoView = () => {
1818
const schedule = typeof window !== 'undefined' && typeof window.requestAnimationFrame === 'function'
1919
? window.requestAnimationFrame
20-
: ((cb) => setTimeout(cb, 0));
20+
: ((cb) => setTimeout(() => cb(), 0));
2121

2222
schedule(() => {
2323
const selectedItem = document.querySelector('.react-datepicker__time-list-item--selected');

0 commit comments

Comments
 (0)