Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#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:


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.

Change History (2)

comment:1 Changed 13 years ago by Scott González

Resolution: invalid
Status: newclosed

jQuery UI's autocomplete plugin doesn't have a matchCase plugin.

comment:2 Changed 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.