{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/6548","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/6548/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/6548/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/6548/events","html_url":"https://github.com/driftyco/ionic/issues/6548","id":155285827,"number":6548,"title":"Issue with Open/Close Menu","user":{"login":"Tubishi","id":18032388,"avatar_url":"https://avatars.githubusercontent.com/u/18032388?v=3","gravatar_id":"","url":"https://api.github.com/users/Tubishi","html_url":"https://github.com/Tubishi","followers_url":"https://api.github.com/users/Tubishi/followers","following_url":"https://api.github.com/users/Tubishi/following{/other_user}","gists_url":"https://api.github.com/users/Tubishi/gists{/gist_id}","starred_url":"https://api.github.com/users/Tubishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tubishi/subscriptions","organizations_url":"https://api.github.com/users/Tubishi/orgs","repos_url":"https://api.github.com/users/Tubishi/repos","events_url":"https://api.github.com/users/Tubishi/events{/privacy}","received_events_url":"https://api.github.com/users/Tubishi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/menus","name":"menus","color":"e11d21"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/platform:android","name":"platform:android","color":"009800"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-05-17T15:14:10Z","updated_at":"2016-08-10T15:20:53Z","closed_at":null,"body":"Hi :), I have a problem with my Menu on Android, when i want to catch the event \"menu.isOpen\" nothing appear. I will explain better, but before my code.\r\n\r\n```\r\nlet menu = this.app.getComponent('menu');\r\nmenu.getContentElement().addEventListener('click', () => {\r\n\t\tconsole.log(menu.isOpen);\r\n\t}\r\n});\r\n```\r\nWith iOS there is no problem, i have a good alternation between true and false, but on Android, i have always the same boolean, do you have any ideas ? Thanks for your answer.\r\n\r\nIonic2 Beta6\r\n\r\nCordova CLI: 6.1.1\r\nGulp version:  CLI version 3.9.0\r\nGulp local:   Local version 3.9.1\r\nIonic Framework Version: 2.0.0-beta.6\r\nIonic CLI Version: 2.0.0-beta.25\r\nIonic App Lib Version: 2.0.0-beta.15\r\nOS: Distributor ID:\tUbuntu Description:\tUbuntu 15.04 \r\nNode Version: v4.0.0"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/238901327","html_url":"https://github.com/driftyco/ionic/issues/6548#issuecomment-238901327","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/6548","id":238901327,"user":{"login":"armand1m","id":6154901,"avatar_url":"https://avatars.githubusercontent.com/u/6154901?v=3","gravatar_id":"","url":"https://api.github.com/users/armand1m","html_url":"https://github.com/armand1m","followers_url":"https://api.github.com/users/armand1m/followers","following_url":"https://api.github.com/users/armand1m/following{/other_user}","gists_url":"https://api.github.com/users/armand1m/gists{/gist_id}","starred_url":"https://api.github.com/users/armand1m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armand1m/subscriptions","organizations_url":"https://api.github.com/users/armand1m/orgs","repos_url":"https://api.github.com/users/armand1m/repos","events_url":"https://api.github.com/users/armand1m/events{/privacy}","received_events_url":"https://api.github.com/users/armand1m/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T15:20:53Z","updated_at":"2016-08-10T15:20:53Z","body":"Hi there! I'm having trouble with these methods too. Seems like the `open` and `close` methods in the `MenuController` always resolve their promises to `false`. I looked on the code and saw that the `Menu` class calls and returns `this.setOpen(boolean)` when opening/closing the menu, so I got a promise resolved with the `this.isOpen` boolean value from the `Menu` class, but it always returns false. I saw that the `private _after(isOpen: boolean)` method in the `Menu` class its the one that actually updates its value, but only if this condition is evaluated to true `((this._isEnabled && isOpen) || !isOpen)`. I couldn't keep looking forward to found what may be causing that, but I just cant know through this promises in my code if the menu is really open or not. "}}
{"actor":{"display_login":"armand1m"}}