While this flickering is indeed happening, at least to me here the control does not lose focus while typing. This is weird. :/
What version of Unity this is happening to you?
I will certainly take a better look at this, but a quick and safe fix would be to replace the line there with this: