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

Text field placeholder with placeholderAnimation set to none not appearing when text set to nil #856

Closed
Pwootage opened this issue Sep 6, 2017 · 2 comments
Assignees

Comments

@Pwootage
Copy link

Pwootage commented Sep 6, 2017

With .placeholderAnimation = .hidden, setting .text = nil programmatically does not properly re-show the placeholder. It is fixed if you open then close the keyboard.

XCode 8.3, Material 2.9.4

Working:
placeholder working

After setting to nil from having text (i.e. to clear):
placeholder broken

@Pwootage Pwootage changed the title Text field placeholder with placeholderAnimation set to none not appearing when text set to nil programmatically Text field placeholder with placeholderAnimation set to none not appearing when text set to nil Sep 6, 2017
@daniel-jonathan daniel-jonathan self-assigned this Sep 6, 2017
@daniel-jonathan
Copy link
Member

Thank you for sharing this, I will reproduce the issue and push a fix :)

@daniel-jonathan
Copy link
Member

daniel-jonathan commented Sep 11, 2017

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

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