Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept matching alternate spelling when only one option left on loosing focus #78

Open
drasive opened this issue Jan 26, 2015 · 1 comment

Comments

@drasive
Copy link

drasive commented Jan 26, 2015

If I enter an alternative spelling into a textbox and use the mouse to focus on a different element afterwards, the input is rejected, even when the input exactly matched an alternative spelling and only one element was left to be selected.
I would expect the input to be accepted in this case.

Example (month input from 1 to 12)
  1. I enter "5", a single option (05) is presented
    image
  2. I use the mouse to focus on a different element. The input is rejected, even though there was only a single available element and my input exactly matched an alternative spelling
    image
HTML
<option disabled selected>Month</option>
<option value="1" data-alternative-spellings="1 January Jan.">01</option>
<option value="2" data-alternative-spellings="2 February Feb.">02</option>
..
@brandoncarl
Copy link

This is the intended behavior. If no selection is actually made then results are ignored. The same thing happens with Facebook, Twitter, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants