-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Keep placeholder attributes sync with text input text's attributes #23738
Conversation
[iOS] Keep placeholder attributes sync with text input text's attributes Add nil check for placeholder
bcb255a
to
37445f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This pull request was successfully merged by @zhongwuzw in 65c014d. When will my fix make it into a release? | Upcoming Releases |
Summary: After #23738 , we can add more text attributes to placeholder, so now, let's update the calculation of placeholder size based on placeholder attributes. [iOS] [Fixed] - Fixed multiline text input placeholder size Pull Request resolved: #23742 Differential Revision: D14320489 Pulled By: cpojer fbshipit-source-id: 6b0f07fe7406d5c99c7280d584f8b8e51fc84c00
Summary: After #23738 , we can add more text attributes to placeholder, so now, let's update the calculation of placeholder size based on placeholder attributes. [iOS] [Fixed] - Fixed singleline text input placeholder size Pull Request resolved: #23745 Differential Revision: D14320630 Pulled By: cpojer fbshipit-source-id: 2d9e8b59ba70228202add762cfc9c6cbc77e5e95
Summary
We need to keep placeholder attributes sync with text input's text attributes, like
font
,kern
....., to keep style the same.Also fixes #19002 .
Changelog
[iOS] [Fixed] - Keep placeholder attributes sync with text input text's attributes
Test Plan
When text input has style attributes like
letterSpacing
,font
, they also applied to placeholder text attributes.