Skip to content

Commit 49becd1

Browse files
authored
fix: improve describe-event-bubbling (#33)
1 parent 4739ce9 commit 49becd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

questions/describe-event-bubbling/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ productList.addEventListener('click', handleBuyClick);
151151
function handleBuyClick(event) {
152152
// Check if the clicked element is a button within the list
153153
if (event.target.tagName.toLowerCase() === 'button') {
154-
console.log('Buy button clicked for item:', event.target.textContent);
154+
console.log('Buy button clicked for item:', event.target.id);
155155
}
156156
}
157157
```

0 commit comments

Comments
 (0)