Permalink
Browse files

TextInput: Fixed `textWasPaste` prop for singleline TextInput

Summary: This regression was recently introduced when RCTTextField was splitted into two classes.

Reviewed By: mmmulani

Differential Revision: D5313055

fbshipit-source-id: 1027ddeed7ea9a4bf6f30b0182092f42588b83e3
  • Loading branch information...
shergin authored and facebook-github-bot committed Jun 23, 2017
1 parent d4cda71 commit 44310da3240e750dc5c939d4f11826c16fdbf8c3
Showing with 8 additions and 0 deletions.
  1. +8 −0 Libraries/Text/RCTUITextField.m
@@ -94,6 +94,14 @@ - (CGRect)editingRectForBounds:(CGRect)bounds
return [self textRectForBounds:bounds];
}
#pragma mark - Overrides
- (void)paste:(id)sender
{
[super paste:sender];
_textWasPasted = YES;
}
#pragma mark - Layout
- (CGSize)intrinsicContentSize

0 comments on commit 44310da

Please sign in to comment.