From 9a721812d0337f9868aa80b3e479bae9a235457b Mon Sep 17 00:00:00 2001 From: Cody Coljee-Gray Date: Sat, 31 May 2025 09:57:07 -0700 Subject: [PATCH] Update describe-event-bubbling Update the first event bubbling example to better match the previous code block. This helps focus the difference on the event bubbling, not this unrelated change. --- questions/describe-event-bubbling/en-US.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questions/describe-event-bubbling/en-US.mdx b/questions/describe-event-bubbling/en-US.mdx index 3ca9bb1..0bb9e2c 100644 --- a/questions/describe-event-bubbling/en-US.mdx +++ b/questions/describe-event-bubbling/en-US.mdx @@ -151,7 +151,7 @@ productList.addEventListener('click', handleBuyClick); function handleBuyClick(event) { // Check if the clicked element is a button within the list if (event.target.tagName.toLowerCase() === 'button') { - console.log('Buy button clicked for item:', event.target.textContent); + console.log('Buy button clicked for item:', event.target.id); } } ```