Tied value correctly to the typeahead 'val' property for better compatibility.