question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: SplitPane not working when Menu is wrapped in a Component

See original GitHub issue

Bug Report

When wrappen the menu inside a SpliePane in it’s own component (e.g. <my-menu>) the SplitPane is not working as expected (2 Panes are shown)

Ionic version:

[x] 5.x latest

Current behavior:

When wrapping the menu inside a SplitPane in it’s own component (e.g. <my-menu>) 2 Panes are shwon

Expected behavior:

The SplitPane should work as if i would put the <ion-menu> right underneath the SplitPane

Steps to reproduce:

Related code: not working:

<ion-split-pane when="xl" contentId="main">
  <my-menu></my-menu>

  <ion-router-outlet main id="main"></ion-router-outlet>
</ion-split-pane>

working:

<ion-split-pane when="xl" contentId="main">
  <ion-menu>...</ion-menu>

  <ion-router-outlet main id="main"></ion-router-outlet>
</ion-split-pane>
insert short code snippets here

Other information:

Ionic info:

insert the output from ionic info here

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jbagaresgaraycommented, Apr 7, 2021

This bug is still happening as of 5.6.3 for @ionic/vue

<IonSplitPane content-id="main-content">
     <Sidebar />
     <ion-router-outlet id="main-content" ></ion-router-outlet>
</IonSplitPane>

so the temporary work around is

ion-menu {
  display: flex;
  flex-shrink: 0;
}
0reactions
cnanderscommented, Nov 11, 2020

This bug is still happening as of 5.4.3. If you get rid of the<ion-split-pane> it works as advertised with <ion-menu> wrapped in its own component, e.g., <my-side-menu>

<ion-app>
    <my-side-menu></my-side-menu>
    <ion-router-outlet></ion-router-outlet>
</ion-app>
Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: SplitPane not working when Menu is wrapped in ... - GitHub
Bug Report When wrappen the menu inside a SpliePane in it's own component (e.g. ) the SplitPane is not working as expected (2...
Read more >
IonicV4 Menu Component inside Split Pane not showing
I'm trying to build an app with Ionic V4. I'm following Ionic Docs but It's a headache even for simplest things. I want...
Read more >
Problem with tabs and shared ion-menu - Ionic Vue
Hi, I'm trying to set up a common ion-menu for every tab in a tab-based interface. I've added the same menu to each...
Read more >
JavaFX CSS Reference Guide - Oracle Help Center
This document describes the JavaFX Cascading Style Sheets (CSS) for JavaFX 2 and explains the styles, values, properties and associated grammar.
Read more >
React Split-pane Component - Morioh
If you wrap the SplitPane into a container component (yes you can, just remember the container has ... https://github.com/tomkp/react-split-pane/issues/233 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found