mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(menu): menuToggle always visible outside navbar
This commit is contained in:
@ -138,10 +138,11 @@ export class MenuToggle {
|
||||
*/
|
||||
get isHidden() {
|
||||
const menu = this._menu.get(this.menuToggle);
|
||||
if (!menu || !menu._canOpen()) {
|
||||
return true;
|
||||
}
|
||||
if (this._inNavbar && this._viewCtrl) {
|
||||
if (!menu || !menu._canOpen()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (this._viewCtrl.isFirst()) {
|
||||
// this is the first view, so it should always show
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user