fixes #4110, can input text without 'value' attribute present

The attribute `value` and the underlying model `TextInput` are not connected to each other, so I just pulled the value out of `TextInput`.