alphagov / govuk-country-and-territory-autocomplete

An autocomplete widget that uses data from Country and Territory Register.
https://alphagov.github.io/govuk-country-and-territory-autocomplete/examples/
MIT License
38 stars 18 forks source link

Locations with hyphens can't be chosen #47

Open colinrotherham opened 6 years ago

colinrotherham commented 6 years ago

The following countries/territories can't be selected if you type the hyphen:

Guinea-Bissau
Ras al-Khaimah
Saint-Martin (French part)
Umm al-Quwain

Before you type the hyphen, you can choose an item:

no-hyphen

As soon as you type the hyphen, the results vanish:

hyphen

Probably also related to https://github.com/alphagov/govuk-country-and-territory-autocomplete/issues/40 @nickcolley

richmidwinter commented 5 years ago

Similar happens for searching on people's - the apostrophe breaks it. Just people matches against North Korea for example.

Ah - already reported as #12.