This commit is contained in:
1van0v 2019-07-15 17:37:01 +03:00 committed by GitHub
parent be342e50e3
commit 9ff7e2d2e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ If you click on the button, the messages are:
1. Inner target: `BUTTON` -- internal event handler gets the correct target, the element inside shadow DOM.
2. Outer target: `USER-CARD` -- document event handler gets shadow host as the target.
Event retargeting is a great thing to have, because the outer document doesn't have no know about component internals. From its point of view, the event happened on `<user-card>`.
Event retargeting is a great thing to have, because the outer document doesn't have to know about component internals. From its point of view, the event happened on `<user-card>`.
**Retargeting does not occur if the event occurs on a slotted element, that physically lives in the light DOM.**