instructure / ic-autocomplete

accessible ember autocomplete component
MIT License
57 stars 22 forks source link

fix for incorrect selection on focusOut #21

Closed ddonahue99 closed 10 years ago

ddonahue99 commented 10 years ago

Before this fix, the behavior was as follows:

Type in ‘A’, bring up results A1, A2, A3 Click A3 Focus out Result: A1 selected because of the first option auto-select behavior on input

This fix clears out the auto-selected option when another option is explicitly selected.

Also addresses an unrelated issue with referencing a possibly destroyed element.

Fixes #19, #20

ryanflorence commented 10 years ago

awesome, thank you!