app-datepicker icon indicating copy to clipboard operation
app-datepicker copied to clipboard

Invalid starting month when min and max are equal and from not current month

Open avizcaino opened this issue 3 years ago • 0 comments

Description

When min and max dates are the same, and not in the current month, the calendar is blank, showing no days for the current month.

Expected outcome

It should navigate to the corresponding month for min and max date.

Actual outcome

Calendar is blank showing no days.

Live Demo

Captura de Pantalla 2021-04-12 a les 16 12 32

<app-datepicker
  min="Sat May 05 2021 00:00:00 GMT+0200 (Hora d’estiu del Centre d’Europa)"
  max="Sat May 05 2021 00:00:00 GMT+0200 (Hora d’estiu del Centre d’Europa)"
  firstDayOfWeek="1"
  locale="ca-ES"
></app-datepicker>

Steps to reproduce

Browsers Affected

  • [x] Chrome/ Opera
  • [x] Firefox
  • [x] Safari 10+
  • [x] Safari 9
  • [x] Safari 8
  • [x] Safari 7
  • [x] Edge 12+
  • [x] IE 11

avizcaino avatar Apr 12 '21 14:04 avizcaino