Skip to content

Incorrect accessibilityPath positions in ScrollView (iOS) #696

Description

@nwdmtech

Describe the bug
In our project we use <EnrichedMarkdownText /> inside of a <ScrollView /> which renders a chat bot conversation.
When new elements are being rendered in that conversation and you start VoiceOver on iOS the focus ring for the text of <EnrichedMarkdownText /> are not rendered at the right position and thus not properly being scrolled to when navigating through the elements.

To Reproduce
Steps to reproduce the behavior:
Render <EnrichedMarkdownText /> inside of a <ScrollView /> and dynamically add new <EnrichedMarkdownText /> elements to the scroll view container.

Expected behavior
When the screen reader reads out the content of a text element inside of <EnrichedMarkdownText /> the focus ring should be located at the right position and it should be scrolled to the right position.

Screenshots
Image

Additional context
The patch in the attached screenshot actually fixed the issue for us. So I would assume the issue here is that the paths are being cached and not recalculated?

Device (please complete the following information):

  • Device: iPhone17
  • OS: iOS26
  • Version: 1.0.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions