Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ooo2003003v2 opened this issue Sep 6, 2023 · 0 comments
Open

Comments

@ooo2003003v2
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant