Skip to content

Commit

Permalink
bug: ensure mutation observer is triggered when content is added to A…
Browse files Browse the repository at this point in the history
…nnounce without pre-existing text.
  • Loading branch information
khiga8 committed Jan 17, 2025
1 parent c7b109d commit 967a963
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/live-region/Announce.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export function Announce({
observer.observe(container, {
subtree: true,
characterData: true,
childList: true,
})

return () => {
Expand Down

0 comments on commit 967a963

Please sign in to comment.