I need disable scroll of ion-content because im using ion-scroll on a custom component. Already tried set no-bounce and ion-fixed on ion-content. I also tried set this css:
.content .scroll-content {
overflow: hidden;
}
but it doesnt works. I just need disable the scroll of content and preserve the scroll of custom component.
Thanks in advance.
Add this to your .scss file
.no-scroll .scroll-content{
overflow: hidden;
}
Then add the no-scroll class to your ion-content like this
<ion-content class="no-scroll">
..
</ion-content>
ion-content {
--overflow: hidden;
}
You can do this by two different approaches :
In SCSS:-
ion-content {--overflow: hidden}
OR
In Html:-
<ion-content scroll-y="false">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.