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
This commit is contained in:
Valentin Shergin 2017-06-23 14:02:35 -07:00 committed by Facebook Github Bot
parent d4cda7168f
commit 44310da324
1 changed files with 8 additions and 0 deletions

View File

@ -94,6 +94,14 @@
return [self textRectForBounds:bounds];
}
#pragma mark - Overrides
- (void)paste:(id)sender
{
[super paste:sender];
_textWasPasted = YES;
}
#pragma mark - Layout
- (CGSize)intrinsicContentSize