Description of the Bug
When changing MDTextFieldHintText or MDTextFieldHelperText while the text field is focused, the hint or helper text doesn't update at all, or only part of the update animation plays.
I have a quick and dirty workaround for it, but it breaks any potential on_focus functions of the text field,
and the update animation for the helper text also doesn't look very intended.
Code and Logs
from kivy.lang import Builder
from kivymd.app import MDApp
KV = """
MDScreen:
MDBoxLayout:
orientation: "vertical"
md_bg_color: app.theme_cls.surfaceColor
Widget:
MDTextField:
text: "broken field"
MDTextFieldHintText:
text: self.parent.text
MDTextFieldHelperText:
text: self.parent.text
mode: "persistent"
Widget:
MDTextField:
text: "fixed field"
on_text: self.focus = False; self.focus = True
MDTextFieldHintText:
text: self.parent.text
MDTextFieldHelperText:
text: self.parent.text
mode: "persistent"
Widget:
"""
class Example(MDApp):
def build(self):
return Builder.load_string(KV)
Example().run()
Screenshots
Versions
- OS: Windows 10 Pro
- Python: 3.10
- Kivy: 2.3.1
- KivyMD: 2.0.1
Description of the Bug
When changing MDTextFieldHintText or MDTextFieldHelperText while the text field is focused, the hint or helper text doesn't update at all, or only part of the update animation plays.
I have a quick and dirty workaround for it, but it breaks any potential on_focus functions of the text field,
and the update animation for the helper text also doesn't look very intended.
Code and Logs
Screenshots
Versions