Skip to content

Commit 4241199

Browse files
dandgersonlex111
andauthored
Update 8-web-components/7-shadow-dom-events/article.md
Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>
1 parent 348c163 commit 4241199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

8-web-components/7-shadow-dom-events/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ customElements.define('user-card', class extends HTMLElement {
2121
<button>Нажми меня</button>
2222
</p>`;
2323
this.shadowRoot.firstElementChild.onclick =
24-
e => alert("Свойство target события внутри компонента: " + e.target.tagName);
24+
e => alert("Внутренний целевой элемент: " + e.target.tagName);
2525
}
2626
});
2727

0 commit comments

Comments
 (0)