We have found a potential issue where suggestions change the letters you have typed into a combobox when you use filter: "contains" and suggest: true.
We think that when the filter is set to "contains", suggestions should still use a "startswith" pattern, except for when there is only one match
A few test cases that can be tried at http://jsfiddle.net/AuSWr/ :
We think that when the filter is set to "contains", suggestions should still use a "startswith" pattern, except for when there is only one match
A few test cases that can be tried at http://jsfiddle.net/AuSWr/ :
- If you type "ani", the suggestion will be "Alanis Morissette: Jagged Little Pill, Live" instead of "Animal Farm". This changes the three letters you've typed to "Ala". If you were to then continue typing the rest of the world "animal" for example, you end up with "Alamal" as your first three letters of "ani" have been replaced with "Ala".
- A similar result can be seen with the word "Shallow". We think this should not make a suggestion as there are no titles starting with "Shallow" but as the filter is set to "contains" you should still see these matches in the drop down list.
- If there is only one match, eg "Shallows" (matches with "Saltwater Experience: Sharks in the Shallows") then it makes sense to suggest this.
We think it should possibly be changed to operate like this or perhaps filter: "contains" and suggest: true are incompatible?
Cheers
Cheers