Fixes the change of style when the text-field grabs the keyboard focus.