#5577 closed bug (notabug)
First character converted to lowercase for comparison
Reported by: | owright | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.autocomplete | Version: | 1.8 |
Keywords: | autocomplete lowercase comparison broken | Cc: | |
Blocked by: | Blocking: |
Description
The first character of text data is always converted to lowercase and this is not needed. For instance if I have the strings "user.analyst" and "User.analyst" in my data array and the autocomplete set to matchCase=true, only the letter 'u' will show entries.
If I type in 'U', no entries are shown. I looked in the JS and there is a line where it defines sFirstChar that gets the first character in the string and converts it to lowercase everytime before comparison. The toLowerCase() method is not needed here and results in improper suggestion return.
Note: See
TracTickets for help on using
tickets.
jQuery UI's autocomplete plugin doesn't have a matchCase plugin.