File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ - (instancetype)initWithFrame:(CGRect)frame
46
46
_placeholderView.numberOfLines = 0 ;
47
47
[self addSubview: _placeholderView];
48
48
#else // [TODO(macOS GH#774)
49
- self.insertionPointColor = [NSColor selectedControlColor ];
50
49
// Fix blurry text on non-retina displays.
51
50
self.canDrawSubviewsIntoLayer = YES ;
52
51
self.allowsUndo = YES ;
@@ -131,7 +130,7 @@ - (void)setSelectionColor:(RCTUIColor *)selectionColor
131
130
NSMutableDictionary *selectTextAttributes = self.selectedTextAttributes .mutableCopy ;
132
131
selectTextAttributes[NSBackgroundColorAttributeName ] = selectionColor ?: [NSColor selectedControlColor ];
133
132
self.selectedTextAttributes = selectTextAttributes.copy ;
134
- self.insertionPointColor = self.selectionColor ?: [NSColor selectedControlColor ];
133
+ self.insertionPointColor = self.selectionColor ?: [NSColor textColor ];
135
134
}
136
135
137
136
- (RCTUIColor*)selectionColor
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ - (NSText *)setUpFieldEditorAttributes:(NSText *)textObj
77
77
NSMutableDictionary *selectTextAttributes = fieldEditor.selectedTextAttributes .mutableCopy ;
78
78
selectTextAttributes[NSBackgroundColorAttributeName ] = self.selectionColor ?: [NSColor selectedControlColor ];
79
79
fieldEditor.selectedTextAttributes = selectTextAttributes;
80
- fieldEditor.insertionPointColor = self.selectionColor ?: [RCTUIColor selectedControlColor ];
81
80
return fieldEditor;
82
81
}
83
82
You can’t perform that action at this time.
0 commit comments