zhaber/ng-bootstrap-datetimepicker

Emptying hour input resets date

Hypocrite opened this issue · 1 comments

When user clears the hour in timepicker it resets the selected date.

Steps to reproduce:

  1. Select a different date than the default one.
  2. Put an empty value to the hour input.
  3. Date is reset to default from the selected value.

This happens only with the hour input but not with the minute input.

Happens also in the Plunker: http://plnkr.co/edit/HyGjgy?p=preview

The bug was caused by af03a7d#diff-11e8d851f57265d26823b90c8f465a4c Reverted the change in the latest revision: http://plnkr.co/edit/HyGjgy?p=preview