Skip to content

Commit

Permalink
Fix text replacement not working in multiline TextInput (facebook#1286)
Browse files Browse the repository at this point in the history
This bug was due to some code in multiline TextInput which disabled all text checking types by default.
We now match the system default instead.

Co-authored-by: Liron Yahdav <lyahdav@fb.com>
  • Loading branch information
christophpurrer and lyahdav authored Jul 26, 2022
1 parent 1c38432 commit 6f2f11f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Libraries/Text/TextInput/Multiline/RCTUITextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ - (instancetype)initWithFrame:(CGRect)frame
_placeholderView.numberOfLines = 0;
[self addSubview:_placeholderView];
#else // [TODO(macOS GH#774)
NSTextCheckingTypes checkingTypes = 0;
self.enabledTextCheckingTypes = checkingTypes;
self.insertionPointColor = [NSColor selectedControlColor];
// Fix blurry text on non-retina displays.
self.canDrawSubviewsIntoLayer = YES;
Expand Down

0 comments on commit 6f2f11f

Please sign in to comment.