Ion-content no longer able to disable scroll?


#1

Am I blind? I’ve been looking through the API, examples, and the 100s of this same question; but they’re all either unanswered or have an outdated answer.

Is there a way to disable ion-content scrollbar if it’s within a tab?


#2

There isn’t a documented approach that I can find as of rc0. I’ve been applying a css class to ion-content that has been working for me:

.no-scroll {
    .scroll-content {
        overflow: hidden !important;
    }
}

#3

That definitely works. I honestly didn’t expect to need to add a custom class to get it to work… Thanks.

For those of you who needed this, you have to add class="no-scroll" to <ion-content>.