Open
Description
If I have a select field like this:
<select name="test" id="test">
<option value="">Select...</option>
<option value="a">A</option>
<option value="b" disabled>B</option>
<option value="c">C</option>
</select>
And enable autocomplete like this:
<script>
accessibleAutocomplete.enhanceSelectElement({
defaultValue: '',
selectElement: document.querySelector('#test')
});
</script>
Then if I type "B" in the autocomplete input field, B is chosen. I would expect it to not be available.
(I can imagine there might be good reasons why gov.uk doesn't use disabled
-- maybe it's poor accessibility? Some other reason? In which case I understand why this doesn't support the option :) But as an outsider using this otherwise excellent tool, this was unexpected behaviour.)