ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

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

Open ooo2003003v2 opened this issue 11 months ago • 0 comments

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>

ooo2003003v2 avatar Sep 06 '23 03:09 ooo2003003v2