Skosmos icon indicating copy to clipboard operation
Skosmos copied to clipboard

Autocomplete component does not highlight the search term as a matching part when using decomposed unicode characters

Open joelit opened this issue 4 years ago • 0 comments

At which URL did you encounter the problem?

  • Create a decomposed search term version of some search term that contains precomposed special characters, for example: This could be reproduced by creating a decomposed unicode search string, for example in linux terminal: uconv -x any-nfd <<<'Etholén, Hans'
  • Precomposed Etholén, Hans that escapes as Ethol**%C3%A9**n%2C+Hans
  • And decomposed 'Etholén, Hans' that escapes as Ethole%CC%81n%2C+Hans

What steps will reproduce the problem?

  1. Navigate to a vocabulary containing a concept matching your search term
  2. Search with the decomposed version in the upper-right reach field
  3. Compare it to searching with the precomposed version in the upper-right reach field

What is the expected output? What do you see instead?

image

It seems that the highlighting of a matching term does not work in typeahead.js for decomposed unicode characters. Also discussed in #1184 and #1239 .

joelit avatar Nov 11 '21 07:11 joelit