Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic 4 split pane doesn't stay open on desktop width

$
0
0

@daveshirmancandc wrote:

Background + Problem

  • I’m selectively hiding and showing a split pane based on whether you’re logged in or not: user is null/present.
  • Everything works fine first time you login + the split pane shows correctly.
  • If you then refresh the page, the split pane auto hides the menu, shows the menu icon, which it shouldn’t.

Q) How can I fix this?

<ion-app>
    <ion-split-pane contentId="my-content" [disabled]="!user">
      <ion-menu contentId="my-content" id="left">
        <ion-header>
          <ion-toolbar color="primary">
            <ion-title>AppAmazing+</ion-title>  
          </ion-toolbar>
        </ion-header>
        <ion-content>
          <ion-list *ngFor="let page of pages">
            <ion-item (click)="setRootPage(page)" button="true">
              <ion-icon [name]="page.icon" slot="start"></ion-icon>
              {{page.title}}
            </ion-item>
          </ion-list>
        </ion-content>
      </ion-menu>
      <ion-router-outlet id="my-content"></ion-router-outlet>
    </ion-split-pane>
</ion-app>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>