Search and Top Navigation
#5577 closed bug (notabug)
Opened May 03, 2010 09:16PM UTC
Closed May 05, 2010 01:30AM UTC
Last modified October 11, 2012 09:15PM UTC
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.
jQuery UI's autocomplete plugin doesn't have a matchCase plugin.