Title: component events should mask event propagation. · Issue #4059 · angular/angular · GitHub
Open Graph Title: component events should mask event propagation. · Issue #4059 · angular/angular
X Title: component events should mask event propagation. · Issue #4059 · angular/angular
Description: @Component({ selector: 'my-component' events: ['change'] }) @View({ template: '' }) class MyComponent { } The above code creates an issue. It conflates the change event from the MyComponent with the bubbling change ...
Open Graph Description: @Component({ selector: 'my-component' events: ['change'] }) @View({ template: '' }) class MyComponent { } The above code creates an issue. It conflates the change event from t...
X Description: @Component({ selector: 'my-component' events: ['change'] }) @View({ template: '<input (change)="...">' }) class MyComponent { } The above code creates an iss...
Opengraph URL: https://github.com/angular/angular/issues/4059
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"component events should mask event propagation.","articleBody":"```\n@Component({\n selector: 'my-component'\n events: ['change']\n})\n@View({\n template: '\u003cinput (change)=\"...\">'\n})\nclass MyComponent {\n} \n```\n\nThe above code creates an issue. It conflates the `change` event from the `MyComponent` with the bubbling `change` event from the `\u003cinput>`.\n\nThe correct behavior is that the `change` event which is part of the components should filter out the DOM `change` events. Otherwise \n\n```\n\u003cmy-component (change)=\"doSomething($event)\">\n```\n\nwill sometimes get the `$event` from the `MyComponent` and sometimes from the `input` event.\n","author":{"url":"https://github.com/mhevery","@type":"Person","name":"mhevery"},"datePublished":"2015-09-08T22:03:45Z","url":"https://github.com/angular/angular/issues/4059"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:8c7daf45-0477-f413-3725-75874b5b820d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0AA:2454CC:E427ED:12299BC:6B010A55 |
| html-safe-nonce | bb67c70603fa068f290e3ff3df45d3a8685ee148e9d22602610220543a2d6e73 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEFBOjI0NTRDQzpFNDI3RUQ6MTIyOTlCQzo2QjAxMEE1NSIsInZpc2l0b3JfaWQiOiIzMTg2ODM5NDI0NDU3NTc0OTk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2d42b89bac87641b352a7867b56539485fb3c7531de62f42b9178376614e7498 |
| hovercard-subject-tag | issue:105478672 |
| 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/angular/angular/4059/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d4c2174f367930fde8e8f30cddb6b96ac7eab04d42f843fd41f4f4ea565f357/angular/angular/issues/4059 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d4c2174f367930fde8e8f30cddb6b96ac7eab04d42f843fd41f4f4ea565f357/angular/angular/issues/4059 |
| og:image:alt | @Component({ selector: 'my-component' events: ['change'] }) @View({ template: '' }) class MyComponent { } The above code creates an issue. It conflates the change event from t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhevery |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width