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

TextField does't refresh detailLabel #1302

Open
AD-Paladins opened this issue Jun 29, 2020 · 0 comments
Open

TextField does't refresh detailLabel #1302

AD-Paladins opened this issue Jun 29, 2020 · 0 comments

Comments

@AD-Paladins
Copy link

If you try to change the color and text in the textField.detailLabel.text, you won't see the change if you dont change the textField.text or focusing the field.

It occurs when the field is not focused and you change the detail text from code.

Pod version:
Material 3.1.8
MaterialComponents 109.4.0

This is my workaround to resolve temporarily my problem:

    guard let lastChar = textField.text!.last else {
        textField.deleteBackward()
        return
    }
   textField.deleteBackward()
    textField.text = textField.text! + String(lastChar)

Have a good day.
Best regards.

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

No branches or pull requests

1 participant