René's URL Explorer Experiment


Title: @angular/elements component events are called from an inconsistent zone · Issue #24181 · angular/angular · GitHub

Open Graph Title: @angular/elements component events are called from an inconsistent zone · Issue #24181 · angular/angular

X Title: @angular/elements component events are called from an inconsistent zone · Issue #24181 · angular/angular

Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or request [ ] Support request => Please do not submi...

Open Graph Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or request [ ...

X Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or reques...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@angular/elements component events are called from an inconsistent zone","articleBody":"## I'm submitting a...\r\n\u003c!-- Check one of the following options with \"x\" -->\r\n\u003cpre>\u003ccode>\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[x] Bug report  \u003c!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ ] Performance issue\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n[ ] Other... Please describe:\r\n\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\n\r\nEvent handlers in an angular element (registered as a custom element with `@angular/elements`), are called either from the angular zone or from the root zone depending on how the element is instantiated, leading to different behaviors:\r\n- if the element is in the initial markup of the page (before the custom element is registered), then event handlers are called from the angular zone (as expected), and the change detection and refresh of the template are done correctly\r\n- if the element is created from the angular zone (after the custom element is registered), then event handlers are called either from the angular zone (in Chrome, leading to a correct behavior) or from the root zone (in other browsers, leading to an incorrect behavior: the change detection is not done and the template is not refreshed)\r\n- if the element is created from the root zone (after the custom element is registered), then event handlers are called from the root zone (both in Chrome and other browsers), leading to an incorrect behavior: the change detection is not done and the template is not refreshed.\r\n\r\n## Expected behavior\r\n\r\nThe angular element should behave correctly no matter how it is instantiated.\r\nIn the minimal reproduction sample, clicking on \"Toggle display\" should work no matter the line.\r\n\r\n## Minimal reproduction of the problem with instructions\r\n\r\nhttps://stackblitz.com/edit/angular-dxu5td?file=src%2Fapp%2Fhello.component.ts\r\nDepending on the line and the browser, clicking on the \"Toggle display\" works or has no effect.\r\nIn Chrome, only the first two lines work correctly. In other browsers, only the first line works correctly.\r\n\r\n## What is the motivation / use case for changing the behavior?\r\n\r\nThe current behavior is inconsistent. Event handlers should be called from the angular zone no matter how the component is instantiated, which would allow those components to be created from any other framework even if that framework does not run in the angular zone.\r\n\r\n## Environment\r\n\r\n\u003cpre>\u003ccode>\r\nAngular version: 6.0.3\r\n\r\nBrowser:\r\n- [x] Chrome (desktop) version 66.0.3359.181\r\n- [x] Firefox version 60.0.1\r\n- [x] IE version XX\r\n- [x] Edge version XX\r\n\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/divdavem","@type":"Person","name":"divdavem"},"datePublished":"2018-05-29T16:12:56Z","url":"https://github.com/angular/angular/issues/24181"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:776ee13e-7c43-9840-b340-48af88fed752
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB672:14ECB:12D18C8:17E63C1:6B01213E
html-safe-nonceb31a532110639036ca5971f23fc6982fa2c09c31218fb3ba05aa27bc786d4c3c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjcyOjE0RUNCOjEyRDE4Qzg6MTdFNjNDMTo2QjAxMjEzRSIsInZpc2l0b3JfaWQiOiI2MjYxNTkyODgzNzMyNzUwNjU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacac2813c30dacce2de28a29b7b588af67537b30b72456f065996c3d050f62dd2f
hovercard-subject-tagissue:327391493
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/24181/issue_layout
twitter:imagehttps://opengraph.githubassets.com/87970b7b5c0afe01e4d0129f7c5a28cccd45b3cde4764110162292b19d49f944/angular/angular/issues/24181
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/87970b7b5c0afe01e4d0129f7c5a28cccd45b3cde4764110162292b19d49f944/angular/angular/issues/24181
og:image:altI'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or request [ ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedivdavem
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/24181#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F24181
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F24181
Sign uphttps://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/24181
Reloadhttps://github.com/angular/angular/issues/24181
Reloadhttps://github.com/angular/angular/issues/24181
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/24181
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/24181
@angular/elements component events are called from an inconsistent zonehttps://github.com/angular/angular/issues/24181#top
area: elementsIssues related to Angular Elementshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20elements%22
freq3: highhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/divdavem
divdavemhttps://github.com/divdavem
on May 29, 2018https://github.com/angular/angular/issues/24181#issue-327391493
https://stackblitz.com/edit/angular-dxu5td?file=src%2Fapp%2Fhello.component.tshttps://stackblitz.com/edit/angular-dxu5td?file=src%2Fapp%2Fhello.component.ts
Nexthttps://github.com/angular/angular/issues/24181?timeline_page=1
remackgeekhttps://github.com/remackgeek
on May 29, 2018https://github.com/angular/angular/issues/24181#event-1651853547
fix(elements): initialization should run in ngZone (angular#24181)https://github.com/remackgeek/angular/commit/5b5dfdd4add9276950e9ce9b76760382ea57a57e
angular#24181https://github.com/angular/angular/issues/24181
5b5dfddhttps://github.com/remackgeek/angular/commit/5b5dfdd4add9276950e9ce9b76760382ea57a57e
https://github.com/remackgeek
remackgeekhttps://github.com/remackgeek
on May 29, 2018https://github.com/angular/angular/issues/24181#issuecomment-392906457
#24185https://github.com/angular/angular/pull/24185
23885https://github.com/angular/angular/pull/23885
@JiaLiPassionhttps://github.com/JiaLiPassion
remackgeekhttps://github.com/remackgeek
on May 29, 2018https://github.com/angular/angular/issues/24181#event-1652237358
fix(elements): initialization should run in ngZone (angular#24181)https://github.com/remackgeek/angular/commit/a24be2279bb1e8d4ea57fd26dbbb381a9da6cb3f
angular#24181https://github.com/angular/angular/issues/24181
a24be22https://github.com/remackgeek/angular/commit/a24be2279bb1e8d4ea57fd26dbbb381a9da6cb3f
fix(elements): initialization should run in ngZone (angular#24181)https://github.com/remackgeek/angular/commit/60a8ebb7b829b1ce359fb912adfd65c0def91e23
angular#24181https://github.com/angular/angular/issues/24181
60a8ebbhttps://github.com/remackgeek/angular/commit/60a8ebb7b829b1ce359fb912adfd65c0def91e23
fix(elements): initialization should run in ngZone (angular#24181)https://github.com/remackgeek/angular/commit/c2230078adccd2243ff58c4b0e24a11d4e628a67
angular#24181https://github.com/angular/angular/issues/24181
c223007https://github.com/remackgeek/angular/commit/c2230078adccd2243ff58c4b0e24a11d4e628a67
alexeaglehttps://github.com/alexeagle
area: elementsIssues related to Angular Elementshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20elements%22
on May 29, 2018https://github.com/angular/angular/issues/24181#event-1652300750
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on May 29, 2018https://github.com/angular/angular/issues/24181#event-1652300814
https://github.com/divdavem
divdavemhttps://github.com/divdavem
on May 30, 2018https://github.com/angular/angular/issues/24181#issuecomment-393074040
@remackgeekhttps://github.com/remackgeek
https://github.com/robwormald
robwormaldhttps://github.com/robwormald
on May 30, 2018https://github.com/angular/angular/issues/24181#issuecomment-393331388
@remackgeekhttps://github.com/remackgeek
https://github.com/JiaLiPassion
JiaLiPassionhttps://github.com/JiaLiPassion
on May 31, 2018https://github.com/angular/angular/issues/24181#issuecomment-393485858
@robwormaldhttps://github.com/robwormald
https://github.com/JiaLiPassion/angular-elements-with-zonehttps://github.com/JiaLiPassion/angular-elements-with-zone
https://github.com/remackgeek
remackgeekhttps://github.com/remackgeek
on May 31, 2018https://github.com/angular/angular/issues/24181#issuecomment-393568944
@robwormaldhttps://github.com/robwormald
https://github.com/remackgeek
remackgeekhttps://github.com/remackgeek
on May 31, 2018https://github.com/angular/angular/issues/24181#issuecomment-393621455
https://github.com/robwormald
robwormaldhttps://github.com/robwormald
on Jun 1, 2018https://github.com/angular/angular/issues/24181#issuecomment-394000127
@remackgeekhttps://github.com/remackgeek
https://github.com/otodockal
otodockalhttps://github.com/otodockal
on Jun 1, 2018https://github.com/angular/angular/issues/24181#issuecomment-394017997
remackgeekhttps://github.com/remackgeek
on Jun 3, 2018https://github.com/angular/angular/issues/24181#event-1660118407
fix(elements): initialization should run in ngZone (angular#24181)https://github.com/remackgeek/angular/commit/5a434672186a20c81f760aeb47d175543f6df9a0
angular#24181https://github.com/angular/angular/issues/24181
5a43467https://github.com/remackgeek/angular/commit/5a434672186a20c81f760aeb47d175543f6df9a0
mheveryhttps://github.com/mhevery
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
8df888dhttps://github.com/angular/angular/commit/8df888dfb48c2b272798d10af2b2d6c1415a0aec
on Jul 23, 2020https://github.com/angular/angular/issues/24181#event-3578309468
mheveryhttps://github.com/mhevery
on Jul 23, 2020https://github.com/angular/angular/issues/24181#event-3578317898
fix(elements): run strategy methods in correct zone (angular#37814)https://github.com/mhevery/angular/commit/5d495248041d8315777656d18a4c6a88e507f26b
angular#37814https://github.com/angular/angular/pull/37814
https://docs.github.com/articles/closing-issues-via-commit-messages
5d49524https://github.com/mhevery/angular/commit/5d495248041d8315777656d18a4c6a88e507f26b
Splaktarhttps://github.com/Splaktar
on Aug 8, 2020https://github.com/angular/angular/issues/24181#event-3635258211
fix(elements): run strategy methods in correct zone (angular#37814)https://github.com/angular-hispano/angular/commit/e72267bc00fa0aa00e7a424d331336ae14473654
angular#37814https://github.com/angular/angular/pull/37814
https://docs.github.com/articles/closing-issues-via-commit-messages
e72267bhttps://github.com/angular-hispano/angular/commit/e72267bc00fa0aa00e7a424d331336ae14473654
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 23, 2020https://github.com/angular/angular/issues/24181#issuecomment-678793653
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 23, 2020https://github.com/angular/angular/issues/24181#event-3682946723
profanishttps://github.com/profanis
on Sep 5, 2020https://github.com/angular/angular/issues/24181#event-3732916599
fix(elements): run strategy methods in correct zone (angular#37814)https://github.com/profanis/angular/commit/8037b7888a79bd5c571b9c4c2f3d47b01053187d
angular#37814https://github.com/angular/angular/pull/37814
https://docs.github.com/articles/closing-issues-via-commit-messages
8037b78https://github.com/profanis/angular/commit/8037b7888a79bd5c571b9c4c2f3d47b01053187d
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/24181
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/24181
area: elementsIssues related to Angular Elementshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20elements%22
freq3: highhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
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.