Please check if the PR fulfills these requirements
[x] It's submitted to right branch according to our branching model
[x] It's right issue type on title
[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] The commit message follows our guidelines
[ ] Tests for the changes have been added (for bug fixes/features)
[ ] Docs have been added/updated (for bug fixes/features)
[ ] It does not introduce a breaking change or has description for the breaking change
Description
Fixed an issue that the previous or next year buttons would not appear even though there were selectable years.
If you look at the picture below, in the past, the previous/next page buttons appeared only when you could select before 2013/after 2031.
However, even if it was selectable from 2014 to 2017 and 2027 to 2030, the previous/next page buttons did not appear.
This criterion has been changed to whether the year closest to the current one can be selected, rather than whether the year in the middle of the previous/next page can be selected.
So if there is even one selectable year on the previous/next page, the button appears.
Thank you for your contribution to TOAST UI product. 🎉 😘 ✨
Please check if the PR fulfills these requirements
fix #xxx[,#xxx]
, where "xxx" is the issue number)Description
Thank you for your contribution to TOAST UI product. 🎉 😘 ✨