valor-software / ngx-bootstrap

Fast and reliable Bootstrap widgets in Angular (supports Ivy engine)
https://valor-software.com/ngx-bootstrap
MIT License
5.53k stars 1.69k forks source link

Cant selecting end date with default strat date on date range picker #6607

Open ooo2003003v2 opened 1 year ago

ooo2003003v2 commented 1 year ago

Hello there,

I'm trying to put in a start date to my date range picker inline like the code down below but somehow when I select the a date in the calendar the start date got updated instead of the end date. Is my approach wrong or is that a bug?

package.json "ngx-bootstrap": "^9.0.0"

Component.ts

dates = [new Date(), undefined];

selectDatesFromPicker($ev) {
   // No output in console when I tried to select a second date
   console.log($ev)
}

Component.html

 <bs-daterangepicker-inline #dateRangePicker
                               outsideEsc="false"
                               [bsValue]="dates"
                               (bsValueChange)="selectDatesFromPicker($event)">
  </bs-daterangepicker-inline>
lexasq commented 4 months ago

Selecting only end date isn't supported.