René's URL Explorer Experiment


Title: Input change event bubbling into custom component change event · Issue #13997 · angular/angular · GitHub

Open Graph Title: Input change event bubbling into custom component change event · Issue #13997 · angular/angular

X Title: Input change event bubbling into custom component change event · Issue #13997 · angular/angular

Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...

Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request...

X Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not su...

Opengraph URL: https://github.com/angular/angular/issues/13997

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Input change event bubbling into custom component change event","articleBody":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report =\u003e search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request =\u003e Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nA custom component exposes an event named `change`: `@Output() change = new EventEmitter\u003cMyEventArg\u003e(true);`. Component contains a (reactive) form, which in turn holds an `\u003cinput\u003e` node whose `(change)` event is not bound to any handler.\r\nWhen input loses its focus, e.g. after user types in then tabs or clicks away, the **custom component** `change` event is fired, receiving a JS `Event` object as passed argument, totally unrelated to `MyEventArg` type. It seems like the inner input change event, while bubbling up, gets caught and handled by custom component change event.\r\n\r\n**Expected behavior**\r\nWhen input loses its focus, the input change event should not be caught by custom component. So custom change event should **not** fire unexpectedly, with unwanted arguments.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\nSee plunk at https://plnkr.co/edit/M8KSb62Tqh7bT01PTYJ3?p=preview.\r\nAnyway, it is enough to:\r\n\r\n1. define a custom component wrapping an input, \r\n1. define a `change` output event on custom component, \r\n1. bind custom component change event to some external handler\r\n1. then type into input and let input lose focus.\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nI'd like to be able to name the change event on a custom component as `change`, and not something else like `changed` or `myComponentChange`. By the way, that *change* name is also used in the official angular tutorial on custom component.\r\n\r\n**Please tell us about your environment:**\r\nIt should not matter at all, just in case: Win 10 64bit, npm 3.9.5\r\n\r\n* **Angular version:** 2.4.2\r\n\r\n* **Browser:** Tried on Chrome 55.0.2883.87 m\r\n \r\n* **Language:** TypeScript 2.0.6\r\n\r\n* ~**Node (for AoT issues):** `node --version` =~\r\n\r\nI tried searching on the web for any \"reserved\" event names, but instead I found an official doc page using that name for a custom component. I tried searching among the issues for anything similar, but it was not easy to refine search with terms like \"change\" and \"event\", but on first result pages could not find anything.","author":{"url":"https://github.com/GiuseppePiscopo","@type":"Person","name":"GiuseppePiscopo"},"datePublished":"2017-01-18T21:43:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/13997/angular/issues/13997"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:76a4cf9b-8228-8e29-1313-9e09afc4ec0d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE4A6:1E7BC5:AB1DA:E5D70:6A612C7C
html-safe-nonce741e6af416238389ee5c28101d9dd4945540e114d01031daeac288b1b25c0383
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEE2OjFFN0JDNTpBQjFEQTpFNUQ3MDo2QTYxMkM3QyIsInZpc2l0b3JfaWQiOiI2Mjg5MjQ3OTExODUzMjM5NDIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5dfd5867ba6a0405e32f8df02cef31ace7624b3c12f0a1aa971485d3f0757a26
hovercard-subject-tagissue:201700585
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/13997/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d49d65cbf5a5e6dc2e3d38c9ab0edcb4ed0bd6c3f3f6a0c0c9d4627cfc5cacaf/angular/angular/issues/13997
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d49d65cbf5a5e6dc2e3d38c9ab0edcb4ed0bd6c3f3f6a0c0c9d4627cfc5cacaf/angular/angular/issues/13997
og:image:altI'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameGiuseppePiscopo
hostnamegithub.com
expected-hostnamegithub.com
None6896275b704df9b9258326d49c8695aecd98d736cd9eeda7bcbb1790ac97d3ad
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseaf89f6cd55841b57fa09b6b0ed9e3f8f2e94b05d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular/issues/13997#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F13997
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F13997
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/13997
Reloadhttps://github.com/angular/angular/issues/13997
Reloadhttps://github.com/angular/angular/issues/13997
Please reload this pagehttps://github.com/angular/angular/issues/13997
angular https://github.com/angular
angularhttps://github.com/angular/angular
Notifications https://github.com/login?return_to=%2Fangular%2Fangular
Fork 27.5k https://github.com/login?return_to=%2Fangular%2Fangular
Star 101k https://github.com/login?return_to=%2Fangular%2Fangular
Code https://github.com/angular/angular
Issues 977 https://github.com/angular/angular/issues
Pull requests 160 https://github.com/angular/angular/pulls
Discussions https://github.com/angular/angular/discussions
Actions https://github.com/angular/angular/actions
Projects https://github.com/angular/angular/projects
Security and quality 24 https://github.com/angular/angular/security
Insights https://github.com/angular/angular/pulse
Code https://github.com/angular/angular
Issues https://github.com/angular/angular/issues
Pull requests https://github.com/angular/angular/pulls
Discussions https://github.com/angular/angular/discussions
Actions https://github.com/angular/angular/actions
Projects https://github.com/angular/angular/projects
Security and quality https://github.com/angular/angular/security
Insights https://github.com/angular/angular/pulse
Input change event bubbling into custom component change eventhttps://github.com/angular/angular/issues/13997#top
https://github.com/GiuseppePiscopo
GiuseppePiscopohttps://github.com/GiuseppePiscopo
on Jan 18, 2017https://github.com/angular/angular/issues/13997#issue-201700585
https://plnkr.co/edit/M8KSb62Tqh7bT01PTYJ3?p=previewhttps://plnkr.co/edit/M8KSb62Tqh7bT01PTYJ3?p=preview
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.