nhn / tui.calendar

🍞📅A JavaScript calendar that has everything you need.
http://ui.toast.com/tui-calendar
MIT License
12.03k stars 1.3k forks source link

How to disable the `scrollToNow` functionality? #1250

Closed reify-paul-kleinschmidt closed 2 years ago

reify-paul-kleinschmidt commented 2 years ago

Version

"@toast-ui/react-calendar": "^1.0.5"

Test Environment

Chrome on MacOS

Current Behavior

I want to auto scroll to a specific schedule event when the calendar renders, but the default auto scroll to the current time is conflicting with this. Is it possible to disable the default scrollToNow behavior?

Expected Behavior

adhrinae commented 2 years ago

@reify-paul-kleinschmidt

If you're using v1, There's no option to disable the default scrollToNow behavior.

In the newer version(The latest version is 2.1.2), there's an option to disable the current time indicator. Then it won't trigger the auto-scroll. But Using a newer version will need a major migration issue.