We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4739ce9 commit 49becd1Copy full SHA for 49becd1
questions/describe-event-bubbling/en-US.mdx
@@ -151,7 +151,7 @@ productList.addEventListener('click', handleBuyClick);
151
function handleBuyClick(event) {
152
// Check if the clicked element is a button within the list
153
if (event.target.tagName.toLowerCase() === 'button') {
154
- console.log('Buy button clicked for item:', event.target.textContent);
+ console.log('Buy button clicked for item:', event.target.id);
155
}
156
157
```
0 commit comments