Skip to content
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

Set TextView's placeholderNormalColor failed #849

Closed
littlemozart opened this issue Sep 1, 2017 · 5 comments
Closed

Set TextView's placeholderNormalColor failed #849

littlemozart opened this issue Sep 1, 2017 · 5 comments
Assignees

Comments

@littlemozart
Copy link

No matter what color I set, the placeholderNormalColor was always blue.

@daniel-jonathan
Copy link
Member

Can you share your code? Thank you!

@littlemozart
Copy link
Author

@DanielDahan Sorry for the late reply, here are my codes before.
// textView.placeholderNormalColor = UIColor.lightGray
// textView.placeholderActiveColor = UIColor.orange
But later I tried to set "placeholderLabel.textColor" and that was what I wanted.
textView.placeholderLabel.textColor = UIColor.lightGray
Thank you!

@daniel-jonathan
Copy link
Member

You are correct, there is a bug here. Also, there shouldn't be a placeholderActiveColor property, as TextView doesn't act as TextField just yet. I am going to make an update and release this within a couple hours. Thank you!

@daniel-jonathan
Copy link
Member

daniel-jonathan commented Sep 11, 2017

Please find a fix for this in Material 2.10.2. Use the textView.placeholderColor property. Thank you for sharing the issue :)

@littlemozart
Copy link
Author

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants