Character count component reads status twice after a user has modified existing value (VoiceOver/Safari) #2587
Labels
accessibility
🐛 bug
Something isn't working the way it should (including incorrect wording in documentation)
Description of the issue
The character count component will start to read out the current status of the component (the "You have n characters remaining" text) twice in VoiceOver/Safari, but only after the user has deleted or modified content that has already been typed previously.
This issue was introduced in #2577, but was deemed to be non-blocking as it doesn't prevent a user from completing the journey (it's just annoying).
Steps to reproduce the issue
There are a few ways to reproduce this.
By deleting text input:
By amending input:
By accepting an autocorrect suggestion:
In all situations, navigating away from the textarea and back to it resolves the duplication, up until one of the reproduction methods is repeated. The issue is also occassionally resolved if the textarea's value is entirely deleted before typing again.
Actual vs expected behaviour
Expected behaviour: The "characters remaining" message is only read out once in all situations.
Environment (where applicable)
This does not occur in VoiceOver/Safari in iOS.
The text was updated successfully, but these errors were encountered: