adopted-ember-addons / adopted-ember-addons/ember-pikaday
Open calendar on minDate if minDate is in future
- Vorherrschende Sprache
- JavaScript
- Sterne
- 156
- Forks
- 164
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hey there,
In our project we have the following use case:
We have a form where the user can enter some information that can have a time-limited validity. We accomplish this with a datepicker in each row (of information) that sets the valid from date.
If the user decides to add a new row of information the datepicker in the this row has a minDate set. The minDate depends on the previous selected valid from date.
This works quite well but when the calendar opens and the minDate is in the future the calendar stays in the current month. This is somehow confusing for the user.
I tried to fix this behavior with setting the defaultDate/setDefaultDate combination. But we don't want a pre-selected date.
Do you know if it is possible to update the calendar view to the minDate set in the future without setting the defaultDate?
We are currently working with the following configuration in ember:
* ember-cli: 2.18.0
* ember-pikaday: 2.2.4
Thx, Mel
Beitragsleitfaden
Rechercherichtung
Reproduce the behavior with ember-pikaday 2.2.4 and a future minDate, using the Ember configuration described in the issue. Start by tracing the datepicker's calendar-opening behavior; done means the view opens on the minDate's month without selecting a default date.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100