Skip to content

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

Open
@ooo2003003v2

Description

@ooo2003003v2

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>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions