FGF-College-Work / Forum

:beer: Espaço dedicado a discussões e tira dúvida sobre disciplinas e conteúdo tecnológico.
MIT License
13 stars 4 forks source link

<ion-menu> does not open in ios mode (Ionic4) #66

Open marcialwushu opened 6 years ago

marcialwushu commented 6 years ago

Ionic version: (check one with "x") (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1) [ ] 2.x [ ] 3.x [x] 4.x

I'm submitting a ... (check one with "x") [x] bug report [ ] feature request

Current behavior:

Setup an with a mechanism to open it (like or explicitly calling the menu's open() method).

On Android / "md" mode, the menu appears as "overlay" type as expected. On iOS / "ios" mode, nothing happens. Expected behavior:

On both modes, the menu appears (as "push" type for iOS).

Steps to reproduce:

Try opening the menu, either using the in the header toolbar, or using the provided "Open menu" button that calls the 's open() method.

Related code:

4.0.0-alpha.1 mode="md": http://plnkr.co/edit/fI2RbafAdmyPWVYn0Rfj?p=preview (this works) 4.0.0-alpha.1 mode="ios": http://plnkr.co/edit/GOmqwcxEPUZVHgkVeRtY?p=preview (does not work) 0.1.5 mode="ios": http://plnkr.co/edit/NZCrtv2lubaRxeNStdjx?p=preview (works)

<ion-button onclick="openMenu()">Open menu</ion-button>
const menu = document.querySelector('ion-menu[menu-id="myMenu"]');

function openMenu() {
  menu.open();
}

Other information:

This works in iOS in @ionic/core version 0.1.5, but fails from 0.1.6 to 4.0.0-alpha.1 (current)

Note: in Plunker for some reason version 0.1.5 sometimes has troubles picking up the menu in "md" mode.

marcialwushu commented 6 years ago

https://github.com/IonicBrazil/organizacao

https://www.techiediaries.com/ionic-angularjs/