{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/7067","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/7067/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/7067/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/7067/events","html_url":"https://github.com/driftyco/ionic/issues/7067","id":162373207,"number":7067,"title":"ionic keyboard and ngIf work not as expected","user":{"login":"RioV","id":3992049,"avatar_url":"https://avatars.githubusercontent.com/u/3992049?v=3","gravatar_id":"","url":"https://api.github.com/users/RioV","html_url":"https://github.com/RioV","followers_url":"https://api.github.com/users/RioV/followers","following_url":"https://api.github.com/users/RioV/following{/other_user}","gists_url":"https://api.github.com/users/RioV/gists{/gist_id}","starred_url":"https://api.github.com/users/RioV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RioV/subscriptions","organizations_url":"https://api.github.com/users/RioV/orgs","repos_url":"https://api.github.com/users/RioV/repos","events_url":"https://api.github.com/users/RioV/events{/privacy}","received_events_url":"https://api.github.com/users/RioV/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/keyboard","name":"keyboard","color":"ededed"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/navigation","name":"navigation","color":"eb6420"},{"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/platform:ios","name":"platform:ios","color":"0052cc"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-27T04:43:38Z","updated_at":"2016-07-02T03:34:15Z","closed_at":"2016-06-27T05:15:38Z","body":"#### Short description of the problem:\r\nI have issue with:\r\n    - Keyboard show/hide event (i'm using ionic keyboard)\r\n    - Angular js 2 *ngIf to show/hide button in navigation bar when keyboard show/hide\r\n\r\nDetail:\r\n    - I'm using ionic v2 to build application. My app have 3 tab bars (like default ionic app when run command ionic start).\r\n    - In first tab, I add 2 buttons in navigation bar using <ion-buttons> one button is \"start\" type, other is \"end\" type. The \"start\" type button is Cancel button. Also have <ion-input> for input value.\r\n    - My requirement is when user tap inside <ion-input> field, keyboard will show. When keyboard show, I'm using *ngIf to show button (Cancel button). And when keyboard hide, I'll hide button.\r\n\r\n    - Everything works fine in iOS's devices. But in Android, it works not as expected. The first time I tap <ion-input> field, button Cancel not show (keyboard show up already), then I tap outside <ion-input> field, keyboard hidden and Cance button show up, not as I expected.\r\n\r\n#### What behavior are you expecting?\r\n- I expect when keyboard show/hide, button Cancel is show/hide same as keyboard.\r\n\r\n**Steps to reproduce:**\r\nI'm commit source code into: https://github.com/RioV/ionic2Study\r\n1. npm install\r\n2. ionic platform add ios/android\r\n3. build app into android device.\r\n4. In Home tab, tab Input number field to show device's keyboard, button Cancel not show (I expected it show up)\r\n5. Tap outside Input number field to hide keyboard, button Cancel show up.\r\n\r\n```\r\nhttps://github.com/RioV/ionic2Study\r\n```\r\n**Which Ionic Version?**  CLI v2.0.0-beta.32\r\n\r\n**Run `ionic info` from terminal/cmd prompt:** (paste output below)\r\nCordova CLI: 6.2.0\r\nIonic Framework Version: 2.0.0-beta.9\r\nIonic CLI Version: 2.0.0-beta.32\r\nIonic App Lib Version: 2.0.0-beta.18\r\nios-deploy version: 1.8.6 \r\nios-sim version: 5.0.8 \r\nOS: Mac OS X El Capitan\r\nNode Version: v6.2.1\r\nXcode version: Xcode 7.3.1 Build version 7D1014 \r\n\r\nI'm testing in \r\niPhone 5s, iOS 8.4: OK\r\niPad mini 3, iOS 9.3.1: OK\r\nNesus 7, Android 5.0.2: NG\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/230081272","html_url":"https://github.com/driftyco/ionic/issues/7067#issuecomment-230081272","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/7067","id":230081272,"user":{"login":"RioV","id":3992049,"avatar_url":"https://avatars.githubusercontent.com/u/3992049?v=3","gravatar_id":"","url":"https://api.github.com/users/RioV","html_url":"https://github.com/RioV","followers_url":"https://api.github.com/users/RioV/followers","following_url":"https://api.github.com/users/RioV/following{/other_user}","gists_url":"https://api.github.com/users/RioV/gists{/gist_id}","starred_url":"https://api.github.com/users/RioV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RioV/subscriptions","organizations_url":"https://api.github.com/users/RioV/orgs","repos_url":"https://api.github.com/users/RioV/repos","events_url":"https://api.github.com/users/RioV/events{/privacy}","received_events_url":"https://api.github.com/users/RioV/received_events","type":"User","site_admin":false},"created_at":"2016-07-02T03:34:15Z","updated_at":"2016-07-02T03:34:15Z","body":"For anyone need solution for issue like that, please refer: \r\nhttps://forum.ionicframework.com/t/ionic-keyboard-and-ngif-work-not-as-expected/55882. \r\nSolution:\r\nhttp://stackoverflow.com/questions/38066124/ionic-keyboard-and-ngif-work-not-as-expected"}}
{"actor":{"display_login":"RioV"}}