Closed
Description
If I have an ion-list inside an ion-scroll, as shown in the example below, the "ion-affixed" ion-list-header won't stick.
If I remove the ion-scroll tags, the header sticks, but then the list is placed directly on the page and not in its own scroll area, the latter being my intention.
Does ion-affix support this use case? If not, is there a possible workaround to make ion-affix support having an ion-list with sticky headers inside an ion-scroll element?
Thanks for creating this!
<ion-header>
<ion-navbar>
<ion-title>
Ionic Blank
</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding #content>
<ion-scroll scrollY="true">
<ion-list>
<ion-list-header ion-affix [content]="content">Sticky Header 1</ion-list-header>
<ion-item>List item 1</ion-item>
<ion-item>List item 2</ion-item>
<ion-item>List item 3</ion-item>
<ion-item>List item 4</ion-item>
<ion-item>List item 5</ion-item>
<ion-item>List item 6</ion-item>
<ion-item>List item 7</ion-item>
<ion-item>List item 8</ion-item>
<ion-item>List item 9</ion-item>
<ion-item>List item 10</ion-item>
<ion-item>List item 11</ion-item>
<ion-item>List item 12</ion-item>
</ion-list>
</ion-scroll>
<ion-slides>
<ion-slide>
<h1>Slide 1</h1>
</ion-slide>
<ion-slide>
<h1>Slide 2</h1>
</ion-slide>
<ion-slide>
<h1>Slide 3</h1>
</ion-slide>
</ion-slides>
</ion-content>
Metadata
Assignees
Labels
No labels
Activity