fixed a bug in textInput where the initial text value wasn't set to the hidden input