AlmeroSteyn / AlmeroSteyn/react-aria-live

`clearOnUnmount` not working?

Ouverte
#20 1 commentaire 5 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
205
Forks
26
Métriques de merge des PR
Aucune PR mergée en 30 j

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?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.