fix(menu): menuToggle always visible outside navbar

This commit is contained in:
Manu Mtz.-Almeida
2017-03-06 17:58:12 +01:00
parent 8b3991cc78
commit e56bad9977

View File

@ -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;