Open tmb-jyskefinans-dk opened 1 year ago
This is in ionic: https://github.com/ionic-team/ionic-framework/issues/25595
Here's how we solved it with an ugly hack.
public toggleIonicOverflowHack(enable: boolean) {
const id = 'ionic-overflow-hack';
let sheet = document.querySelector(`#${id}`);
if (enable) {
if (!sheet) {
sheet = document.createElement('style');
sheet.id = id;
sheet.innerHTML = `
ion-content::part(scroll) {
overflow-y: auto !important;
}
`;
document.body.appendChild(sheet);
}
} else if (sheet) {
document.body.removeChild(sheet);
}
}
<kirby-range
(mousedown)="this.toggleIonicOverflowHack(true)"
(window:mouseup)="this.toggleIonicOverflowHack(false)"
...
></kirby-range>
Did something similar. the issue on ionic has been there a long time sadly...
Describe the bug
When using the range slider in a
kirby-page
, and the vertical scroll bar is visible, it removes the.scroll-y
class from theion-content > main
element. As a result, the default.inner-scroll
style is applied, which setsoverflow:hidden
. This issue occurs when a page using the range slider has more vertical content, causing the click on the range indicator to flicker upon clicking.Describe how to reproduce the bug
Which Kirby version was used?
8.6.0
What was the expected behavior?
If the scrollbar is visible due to long content, it should not remove the scrollbar upon clicking the range slider. The
overflow-y : auto
style is applied to the scroll-y class of the main element in theion-content
, and clicking the range slider removes that class.Please complete the following information:
Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Verification
To make sure the bug is not intended behaviour; it should be verified by a member of team Kirby before moving on to implementation.
NOT verified
label has been removed by a member of team Kirby; do not proceed until this is doneImplementation
The contributor who wants to implement this issue should:
Review
Once the issue has been implemented and is ready for review: