Set the text field to type text rather than undefined

See: https://github.com/GigaOM/legacy-pro/issues/2997