AlmeroSteyn / AlmeroSteyn/react-aria-live

`clearOnUnmount` not working?

Open
#20 1 comment 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
205
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Hey there, thanks so much for your work on this!

I see in your documentation that `clearOnUnmount` should allow identical messages to be repeated. This is something we'd like to accomplish in a feature where a small toast element should be repeatedly visible if another element is focused. I see that there is handling for re-calculating the ids, but it doesn't appear as though those ids make their way into the messages that get rendered here: https://github.com/AlmeroSteyn/react-aria-live/blob/0e399857b7e3d0da6d8e5b678814433c3d825237/src/modules/Announcer.js#L76

I'm setting `clearOnUnmount` but the messages do not appear to rebroadcast using VoiceOver in Chrome. Could you help get me moving in the right direction?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.