Skip to content

Commit 2dd1dc0

Browse files
committed
invalidate placeholder visibility
1 parent c679dab commit 2dd1dc0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Libraries/Text/TextInput/Multiline/RCTUITextView.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ - (void)setTextAlignment:(NSTextAlignment)textAlignment
145145
_placeholderView.textAlignment = textAlignment;
146146
}
147147

148+
- (void)setAttributedText:(NSAttributedString *)attributedText
149+
{
150+
[super setAttributedText:attributedText];
151+
[self textDidChange];
152+
}
153+
148154
- (void)setSelectedTextRange:(UITextRange *)selectedTextRange notifyDelegate:(BOOL)notifyDelegate
149155
{
150156
if (!notifyDelegate) {

0 commit comments

Comments
 (0)