kekeh / angular-mydatepicker

Angular datepicker and date range picker :date:
https://kekeh.github.io/angular-mydatepicker/
MIT License
1 stars 11 forks source link

Focus method has dead code #118

Open fidian opened 3 months ago

fidian commented 3 months ago

Please see here: https://github.com/kekeh/angular-mydatepicker/blob/master/projects/angular-mydatepicker/src/lib/components/calendar/calendar.component.ts#L559

It looks like elem is assigned uselessly. When the line is deleted, then most of the if block is also useless. Is there a missing elem.focus() here?