harvesthq / chosen

Deprecated - Chosen is a library for making long, unwieldy select boxes more friendly.
http://harvesthq.github.io/chosen/
Other
21.85k stars 4.1k forks source link

standard select on demo page not finding countries with "land" but there are 28 such countries #1915

Closed dlhpp closed 10 years ago

dlhpp commented 10 years ago

I was trying "chosen" on the demo page located here: http://harvesthq.github.io/chosen/ when I noticed it doesn't seem to find any countries with "land" in the name. For example, it doesn't find Thailand or Finland or Aland Islands. I looked into the source file and counted 28 countries with "land" in the name.

I'm just using the Standard Select at the top of the page and the page says it is using chosen v1.1.0. I tested in Firefox, Chrome and IE and got the same result (no countries found with "land") in all three browsers.

I'm attaching an image showing exactly what I was doing.

chosen_not_finding_country_land

Here are the 28 countries in the select list containing "land":

Aland Islands Bouvet Island Cayman Islands Christmas Island Cocos (Keeling) Islands Cook Islands Falkland Islands (Malvinas) Faroe Islands Finland Greenland Heard Island and Mcdonald Islands Iceland Ireland Marshall Islands Netherlands New Zealand Norfolk Island Northern Mariana Islands Poland Solomon Islands South Georgia and The South Sandwich Islands Swaziland Switzerland Thailand Turks and Caicos Islands United States Minor Outlying Islands Virgin Islands, British Virgin Islands, U.S.

dlhpp commented 10 years ago

Sorry, just read the options page and discovered I have to set "search_contains" to true to get this behavior. This is an awesome tool - Thank you!!!