mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
style: js is hard
This commit is contained in:
@ -756,12 +756,12 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
|
|||||||
const max = this._max = parseDate(this.max);
|
const max = this._max = parseDate(this.max);
|
||||||
|
|
||||||
if (min.year > max.year) {
|
if (min.year > max.year) {
|
||||||
min.year = this._min.year = (max.year - 100);
|
min.year = max.year - 100;
|
||||||
} else if (min.year === max.year) {
|
} else if (min.year === max.year) {
|
||||||
if (min.month > max.month) {
|
if (min.month > max.month) {
|
||||||
min.month = this._min.month = 1;
|
min.month = 1;
|
||||||
} else if (min.month === max.month && min.day > max.day) {
|
} else if (min.month === max.month && min.day > max.day) {
|
||||||
min.day = this._min.day = 1;
|
min.day = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user