Open kzmi opened 5 years ago
Hi @kzmi
for making the vertical scroll bar always visible.
In general this is not a good approach. Normally it should not be possible to scroll the background when the picker is open so this change does not make much sense.
What I want is a method to control the page scroll in another way. Currently, pickadate controls the page scroll and it is not easy to override.
I thought this issue was not a special case.
For example, imagine that pickadate is used in the modal dialog. If the framework controls the modal dialog and the page scroll, pickadate's scroll-blocking may conflict with it.
Demo1 (with Bootstrap Modal): https://codepen.io/kzmi/pen/yWQjPy
Demo2 (with Micromodal.js): https://codepen.io/kzmi/pen/EzGNrp
Though it is not possible to provide the perfect scroll-blocking, the option to disable it will help to solve the issue.
My site uses
for making the vertical scroll bar always visible.
When pickadate popups the date-picker, extra padding appears on the left side of the vertical scroll bar. (pickadate.js 3.6.4)
Sample: https://codepen.io/kzmi/pen/Mdzrvw
I can handle this issue like:
but this workaround seems not a good solution. This workaround depends on the behavior of the pickadate's scroll-blocking.
If the scroll-blocking feature can be disabled, I can control the scroll-blocking with other way.
For example,