{"action":"created","issue":{"url":"https://api.github.com/repos/rev087/ng-inspector/issues/100","labels_url":"https://api.github.com/repos/rev087/ng-inspector/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/rev087/ng-inspector/issues/100/comments","events_url":"https://api.github.com/repos/rev087/ng-inspector/issues/100/events","html_url":"https://github.com/rev087/ng-inspector/issues/100","id":68850498,"number":100,"title":"Collapsing/Expanding doesn't work when used with Ionic Framework","user":{"login":"rev087","id":141850,"avatar_url":"https://avatars.githubusercontent.com/u/141850?v=3","gravatar_id":"","url":"https://api.github.com/users/rev087","html_url":"https://github.com/rev087","followers_url":"https://api.github.com/users/rev087/followers","following_url":"https://api.github.com/users/rev087/following{/other_user}","gists_url":"https://api.github.com/users/rev087/gists{/gist_id}","starred_url":"https://api.github.com/users/rev087/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rev087/subscriptions","organizations_url":"https://api.github.com/users/rev087/orgs","repos_url":"https://api.github.com/users/rev087/repos","events_url":"https://api.github.com/users/rev087/events{/privacy}","received_events_url":"https://api.github.com/users/rev087/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rev087/ng-inspector/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T05:43:41Z","updated_at":"2015-04-27T16:03:47Z","closed_at":null,"body":"From http://forum.ionicframework.com/t/using-ng-inspector/21061\r\n\r\nI was able to reproduce this with the mentioned \"sidemenu\" boilerplate project. Steps to set up a test Ionic project:\r\n\r\n```\r\n$ npm install -g cordova ionic\r\n$ ionic start myApp sidemenu\r\n$ cd myApp\r\n$ ionic serve\r\n```"},"comment":{"url":"https://api.github.com/repos/rev087/ng-inspector/issues/comments/96724632","html_url":"https://github.com/rev087/ng-inspector/issues/100#issuecomment-96724632","issue_url":"https://api.github.com/repos/rev087/ng-inspector/issues/100","id":96724632,"user":{"login":"DrewML","id":5233399,"avatar_url":"https://avatars.githubusercontent.com/u/5233399?v=3","gravatar_id":"","url":"https://api.github.com/users/DrewML","html_url":"https://github.com/DrewML","followers_url":"https://api.github.com/users/DrewML/followers","following_url":"https://api.github.com/users/DrewML/following{/other_user}","gists_url":"https://api.github.com/users/DrewML/gists{/gist_id}","starred_url":"https://api.github.com/users/DrewML/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrewML/subscriptions","organizations_url":"https://api.github.com/users/DrewML/orgs","repos_url":"https://api.github.com/users/DrewML/repos","events_url":"https://api.github.com/users/DrewML/events{/privacy}","received_events_url":"https://api.github.com/users/DrewML/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T16:03:47Z","updated_at":"2015-04-27T16:03:47Z","body":"I believe the following code used to create event handlers internal to Ionic is causing the issue:\r\n\r\n```javascript\r\nfunction createEventHandler(element, events) {\r\n  var eventHandler = function(event, type) {\r\n    // jQuery specific api\r\n    event.isDefaultPrevented = function() {\r\n      return event.defaultPrevented;\r\n    };\r\n\r\n    var eventFns = events[type || event.type];\r\n    var eventFnsLength = eventFns ? eventFns.length : 0;\r\n\r\n    if (!eventFnsLength) return;\r\n\r\n    if (isUndefined(event.immediatePropagationStopped)) {\r\n      var originalStopImmediatePropagation = event.stopImmediatePropagation;\r\n      event.stopImmediatePropagation = function() {\r\n        event.immediatePropagationStopped = true;\r\n\r\n        if (event.stopPropagation) {\r\n          event.stopPropagation();\r\n        }\r\n\r\n        if (originalStopImmediatePropagation) {\r\n          originalStopImmediatePropagation.call(event);\r\n        }\r\n      };\r\n    }\r\n\r\n    event.isImmediatePropagationStopped = function() {\r\n      return event.immediatePropagationStopped === true;\r\n    };\r\n\r\n    // Copy event handlers in case event handlers array is modified during execution.\r\n    if ((eventFnsLength > 1)) {\r\n      eventFns = shallowCopy(eventFns);\r\n    }\r\n\r\n    for (var i = 0; i < eventFnsLength; i++) {\r\n      if (!event.isImmediatePropagationStopped()) {\r\n        eventFns[i].call(element, event);\r\n      }\r\n    }\r\n  };\r\n```\r\n\r\nIonic's click handler is likely bound before `ng-inspector`s. Because of this, our click events are being cancelled by their call to `event.stopImmediatePropagation`.\r\n\r\nI'm not quite sure what the solution to this is going to be, yet."}}