Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

bsDatepicker time picker buttons do not raise change events #11151


User avatar
0
[email protected] created
  • What is your product version? 11.1
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .NET Core
  • What is ABP Framework version? 7.3.0
  • Which theme are you using? Metronic

I am using the bsDatePicker with time picker enabled:

                                <input
                                    id="BirthDate"
                                    type="text"
                                    #BirthDate
                                    name="BirthDate"
                                    class="form-control"
                                    bsDatepicker
                                    datePickerLuxonModifier
                                    [(date)]="user.birthDate"
                                    [bsConfig]="{ adaptivePosition: true, withTimepicker: true }"
                                />

When using the up / down buttons for hours / minutes, or the AM / PM button, bsDatePicker does not fire its bsValueChange function, and thus the DatePickerLuxonModifierDirective does not pass it on to my bound DateTime value. If I choose a time and click away from the date picker to dismiss it and then reopen it, the time has reverted to its default value of 12PM. bsValueChange is fired as expected when I click on the date buttons.


3 Answer(s)