Changes to attributes like password and mask-character won't be visible immediately

Hi there,

when changing attributes like password of the TextInputBaseField via callbacks the change is not visible immediately. In my case I have to hover the field before the change is applied.

I’m just using a TextField with password=true but wanted to have a show/hide toggle next to it. So I’m using the toggle callback to toggle the password attribute but this is not working as expected and as I said the change is not visible before hovering the TextField.
Other attributes like label will change immediately using the same callback.

Is this a bug or do some attributes require special care? Tried some dirty flags (MarkDirtyRepaint on the TextField) but that didn’t change anything in my case.

Thanks in advance.
Felix

This clearly sounds like a bug. Can you file a report in the editor via Help->Report a bug…

In the meantime, maybe invalidating the textField’s inner children will help workaround the issue:

foreach(var child in myTextField.Children())
{
   child.MarkDirtyRepaint();
}
1 Like

Hi thanks again @uMathieu - your workaround does the trick. Bug report is send.

1 Like