Skip to content

Commit 92676a0

Browse files
Copilotacoates-ms
andcommitted
Add text layout invalidation for baseWritingDirection property changes
Co-authored-by: acoates-ms <30809111+acoates-ms@users.noreply.github.com>
1 parent c000be0 commit 92676a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vnext/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ void ParagraphComponentView::updateProps(
6363
updateTextAlignment(newViewProps.textAttributes.alignment);
6464
}
6565

66+
if (oldViewProps.textAttributes.baseWritingDirection != newViewProps.textAttributes.baseWritingDirection) {
67+
m_textLayout = nullptr;
68+
}
69+
6670
if (oldViewProps.paragraphAttributes.ellipsizeMode != newViewProps.paragraphAttributes.ellipsizeMode) {
6771
m_textLayout = nullptr;
6872
}

0 commit comments

Comments
 (0)