You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even when a date is set to be disabled using beforeShowDay option, the date can still be selected using the keyboard(using arrow keys + enter key), however, it's not selectable using the mouse(which is expected). And using options such as daysOfWeekDisabled and datesDisabled to disable dates works fine, however trying to use beforeShowDay to disable dates doesnt work.
I did a search on the same issue and I was able to find similar old issue #1365 and according to those issue it was fixed a long time back but I can still reproduce the same issue in 1.9.0. Or is it that I am doing something wrong?
Any help is appreciated, thanks in advance
The text was updated successfully, but these errors were encountered:
Expected behaviour
It should not select a disabled date(disabled using the
beforeShowDay
option https://bootstrap-datepicker.readthedocs.io/en/stable/options.html#beforeshowday) even when we navigate and select using keyboard.Actual behaviour
Even when a date is set to be disabled using
beforeShowDay
option, the date can still be selected using the keyboard(using arrow keys + enter key), however, it's not selectable using the mouse(which is expected). And using options such asdaysOfWeekDisabled
anddatesDisabled
to disable dates works fine, however trying to usebeforeShowDay
to disable dates doesnt work.Datepicker version used
ex. v1.9.0
Example code
https://jsbin.com/jisotevoni/edit?html,js,console,output this jsbin reproduces the issue
I did a search on the same issue and I was able to find similar old issue #1365 and according to those issue it was fixed a long time back but I can still reproduce the same issue in 1.9.0. Or is it that I am doing something wrong?
Any help is appreciated, thanks in advance
The text was updated successfully, but these errors were encountered: