Title: Tap events propagating when isPassThroughParentEnabled = false; · Issue #6606 · NativeScript/NativeScript · GitHub
Open Graph Title: Tap events propagating when isPassThroughParentEnabled = false; · Issue #6606 · NativeScript/NativeScript
X Title: Tap events propagating when isPassThroughParentEnabled = false; · Issue #6606 · NativeScript/NativeScript
Description: Environment CLI: 5.0.1 Cross-platform modules: 5.0.3 Android Runtime: 5.0.0 iOS Runtime: 5.0.0 Describe the bug Tap events are being propagated to parent objects, even when isPassThroughParentEnabled = false; To Reproduce Add nested tap ...
Open Graph Description: Environment CLI: 5.0.1 Cross-platform modules: 5.0.3 Android Runtime: 5.0.0 iOS Runtime: 5.0.0 Describe the bug Tap events are being propagated to parent objects, even when isPassThroughParentEnabl...
X Description: Environment CLI: 5.0.1 Cross-platform modules: 5.0.3 Android Runtime: 5.0.0 iOS Runtime: 5.0.0 Describe the bug Tap events are being propagated to parent objects, even when isPassThroughParentEnabl...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/6606
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tap events propagating when isPassThroughParentEnabled = false;","articleBody":"**Environment**\r\n - CLI: 5.0.1\r\n - Cross-platform modules: 5.0.3\r\n - Android Runtime: 5.0.0\r\n - iOS Runtime: 5.0.0\r\n\r\n**Describe the bug**\r\n\r\nTap events are being propagated to parent objects, even when isPassThroughParentEnabled = false;\r\n\r\n**To Reproduce**\r\n\r\nAdd nested tap events to the objects, a Label with a tap inside a StackLayout with another tap is enough, the StackLayout event will be fired even when the touch is on the Label.\r\n\r\n```xml\r\n\u003cScrollView tap=\"test\"\u003e\r\n \u003cStackLayout tap=\"test\"\u003e\r\n \u003cLabel text=\"Touch this label\" tap=\"test\" textWrap=\"true\"/\u003e\r\n \u003c/StackLayout\u003e\r\n\u003c/ScrollView\u003e\r\n```\r\n```ts\r\nexport function test(args: EventData) {\r\n (\u003cany\u003eargs.object).isPassThroughParentEnabled = false; // This seems to be ignored\r\n console.log(\"Touch on \" + args.object);\r\n}\r\n```\r\n\r\n**Expected behavior**\r\n\r\nTaps not being propagated when isPassThroughParentEnabled is set to false.\r\n\r\n**Sample project**\r\n\r\nhttps://play.nativescript.org/?template=play-tsc\u0026id=pj7FjN\r\nTap the label and see a log for each element.\r\n\r\n\r\n\u003cbountysource-plugin\u003e\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/66560863-tap-events-propagating-when-ispassthroughparentenabled-false?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github).\r\n\u003c/bountysource-plugin\u003e","author":{"url":"https://github.com/mukaschultze","@type":"Person","name":"mukaschultze"},"datePublished":"2018-11-23T12:54:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/6606/NativeScript/issues/6606"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3b34481e-d0b2-83a2-ba44-3e56b49d37c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9AC:80618:60587:7CAFF:6973E34D |
| html-safe-nonce | 245d495453462fc5b40ac87606e4926d08097b7c4a9a9a5175fd1cd0f29e673b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUFDOjgwNjE4OjYwNTg3OjdDQUZGOjY5NzNFMzREIiwidmlzaXRvcl9pZCI6IjQ0MDE2Mjc2NTY2MDQ2MDczMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c6a5701857333f813489e90744bbdee9e672bc45bf92aa877678789962655cff |
| hovercard-subject-tag | issue:383814910 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/6606/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03f1f80e1f5a12ceb4517dc27a414965459640a5e5f61d63aeb699279760bd9f/NativeScript/NativeScript/issues/6606 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03f1f80e1f5a12ceb4517dc27a414965459640a5e5f61d63aeb699279760bd9f/NativeScript/NativeScript/issues/6606 |
| og:image:alt | Environment CLI: 5.0.1 Cross-platform modules: 5.0.3 Android Runtime: 5.0.0 iOS Runtime: 5.0.0 Describe the bug Tap events are being propagated to parent objects, even when isPassThroughParentEnabl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mukaschultze |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4b7a84cee4a6a4d5586408f46e9a84ba4875452ca979bb7cde3489bd59b55cb7 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4042c2390128e359bfef98d0ec9e5622256ea303 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width