Typeahead fix for input cursor drop at the end of the input after values update.

After typeahead values update script renews input value, so if input was edited in center cursor drops at the end of the input. Fix it with - if value to update is the same as current input value skip input value update.