From 44310da3240e750dc5c939d4f11826c16fdbf8c3 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Fri, 23 Jun 2017 14:02:35 -0700 Subject: [PATCH] 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 --- Libraries/Text/RCTUITextField.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Libraries/Text/RCTUITextField.m b/Libraries/Text/RCTUITextField.m index 3ab4036fd..85c7fd77c 100644 --- a/Libraries/Text/RCTUITextField.m +++ b/Libraries/Text/RCTUITextField.m @@ -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