ngx-bootstrap
ngx-bootstrap copied to clipboard
Cant selecting end date with default strat date on date range picker
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>