Closed andreweberle closed 6 days ago
Hey @andreweberle,
As the parent library uses 0 and 1 instead of false
and true
it will most likely stay with numbers.
I'll update the docs from boolean now so that there is no confusion here.
Cheers, Zoltan
@zoltanszogyenyi No worries at all mate :)
Describe the bug The
autoSelectToday
property in theDatePickerOptions
object is incorrectly documented as a boolean when it is actually defined as a number in the codebase.To Reproduce Steps to reproduce the behavior:
DatePickerOptions
object withautoSelectToday
set to a number, e.g.,1
or0
to replicate aboolean
autoSelectToday
.autoSelectToday
does not behave as expected based on the documentation.const datePickerOptions = { defaultDatepickerId: null, autohide: false, format: 'dd/mm/yyyy', maxDate: null, minDate: null, orientation: 'bottom-right', buttons: false, autoSelectToday: 1, title: null, language: 'en', rangePicker: false, } as DatepickerOptions;
Expected behavior
autoSelectToday
should be documented and typed consistently as a boolean in theDatePickerOptions
interface, allowing it to correctly indicate whether today's date should be preselected.