better solution for RTL typeahead