-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ui5-datepicker): display extreme values correctly #75
Conversation
d368fc9
to
7b1271b
Compare
packages/main/src/Calendar.js
Outdated
}); | ||
|
||
this._isShiftingYears = true; | ||
} | ||
|
||
_showPrevPageYears() { | ||
if (this._yearPicker.timestamp) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These blocks (the one highlighted here) and above seem very similar, perhaps you can extract and reuse code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
if (this._calendarDate.getYear() < 1) { | ||
// 0 is a valid year, but we cannot display it | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed, as 0 is valid lets display it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a problem in islamic. 1 is the minimum for now
Fixes #26
Thank you for your contribution! 👏
To get it merged faster, kindly review the checklist below:
Pull Request Checklist