fix #1190 -- TextField has no max_length.