Skip to content

Commit 3cade4b

Browse files
committed
remove bad init
1 parent 0ca1b7f commit 3cade4b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/input-birthday.component.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@ class BirthdayInputComponent {
3030
this.year = year;
3131
this.month = String(this.ngModel.month());
3232
this.day = parseInt(this.ngModel.format('DD'), 0);
33-
34-
const birthdayDate = moment(`${this.year}-${this.month}-${this.day}`, 'YYYY-MM-DD');
35-
if (this.returnFormat) {
36-
this.ngModel = birthdayDate.format(this.returnFormat);
37-
} else {
38-
this.ngModel = this.returnType === 'moment' ? birthdayDate : birthdayDate.toDate();
39-
}
4033
}
4134
}
4235

0 commit comments

Comments
 (0)