Skip to content

Commit 70f3149

Browse files
authored
fix(fabric, textinput): support enableFocusRing (#2875)
## Summary: Seems a simple enough fix. ## Test Plan: <img width="616" height="533" alt="Screenshot 2026-03-27 at 5 29 23 PM" src="https://github.com/user-attachments/assets/19de4309-1214-49c4-b3c0-cf1cc32b70d4" /> <img width="616" height="533" alt="Screenshot 2026-03-27 at 5 29 25 PM" src="https://github.com/user-attachments/assets/5353760d-f2cd-4a24-9553-585bcdf7c095" />
1 parent 1db0687 commit 70f3149

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,12 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
410410
NSArray<NSPasteboardType> *types = RCTPasteboardTypeArrayFromProps(newTextInputProps.traits.pastedTypes);
411411
[_backedTextInputView setReadablePasteBoardTypes:types];
412412
}
413+
414+
if (newTextInputProps.enableFocusRing != oldTextInputProps.enableFocusRing) {
415+
if ([_backedTextInputView respondsToSelector:@selector(setEnableFocusRing:)]) {
416+
[_backedTextInputView setEnableFocusRing:newTextInputProps.enableFocusRing];
417+
}
418+
}
413419
#endif // macOS]
414420

415421
[super updateProps:props oldProps:oldProps];

0 commit comments

Comments
 (0)