Feature request: Option to disable the scroll-blocking
- Vorherrschende Sprache
- JavaScript
- Sterne
- 7.6k
- Forks
- 981
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
My site uses
```css
html { overflow-y: scroll; }
```
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:
```javascript
$('.datepicker').pickadate({
onOpen: function() { $('html').css('overflow', 'hidden') },
onClose: function() { $('html').css('overflow', '') }
});
```
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,
```javascript
$('.datepicker').pickadate({
...
noScrollBlocking: true, // example of the new option
...
onOpen: function() { myBlockScroll() },
onClose: function() { myUnblockScroll() }
});
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.