Inherit input's value on typeahead initialization

Solves one aspect of #28.