New (actually old) way to make RCTUITextField editable/non-editable
Reviewed By: mmmulani, sahrens Differential Revision: D5368181 fbshipit-source-id: 9580adb4980e758fba2bf4ee4460eaaa6823358a
This commit is contained in:
parent
c28595e3fb
commit
0fd061ec3d
|
@ -73,12 +73,12 @@
|
|||
|
||||
- (BOOL)isEditable
|
||||
{
|
||||
return self.userInteractionEnabled;
|
||||
return self.isEnabled;
|
||||
}
|
||||
|
||||
- (void)setEditable:(BOOL)editable
|
||||
{
|
||||
self.userInteractionEnabled = editable;
|
||||
self.enabled = editable;
|
||||
}
|
||||
|
||||
#pragma mark - Caret Manipulation
|
||||
|
|
Loading…
Reference in New Issue