Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui5-datepicker): display extreme values correctly #75

Merged
merged 5 commits into from
Feb 22, 2019

Conversation

a-z-ivanov
Copy link
Contributor

Fixes #26

Thank you for your contribution! 馃憦

To get it merged faster, kindly review the checklist below:

Pull Request Checklist

@CLAassistant
Copy link

CLAassistant commented Feb 19, 2019

CLA assistant check
All committers have signed the CLA.

});

this._isShiftingYears = true;
}

_showPrevPageYears() {
if (this._yearPicker.timestamp) {
Copy link
Member

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.

Copy link
Contributor Author

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;
}
Copy link
Member

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.

Copy link
Contributor Author

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

@a-z-ivanov a-z-ivanov merged commit d1c7259 into master Feb 22, 2019
@adrian-bobev adrian-bobev deleted the datepicker-fix-extreme-values branch February 22, 2019 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants