gfranko / jquery.selectBoxIt.js

A jQuery Select Box Plugin for Mobile, Tablet, and Desktop
http://www.selectboxit.com
MIT License
852 stars 301 forks source link

Keyboard support not working #342

Open ptomblin opened 9 years ago

ptomblin commented 9 years ago

I can't move to options in the drop down using the keyboard. I have this problem in both Firefox and IE on Windows, using selectBoxIt 3.8.1, jQuery 1.11.3, jquery-ui 1.11.4 and Bootstrap 2.3.1. I can get the keyboard to work if I use "native: true", but then I don't get the popovers, which is the main reason I use selectBoxIT.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26595595-keyboard-support-not-working?utm_campaign=plugin&utm_content=tracker%2F23157&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F23157&utm_medium=issues&utm_source=github).
ptomblin commented 9 years ago

I'm trying to make a jsfiddle to demonstrate the problem, but I can't get the popovers to work nor can I reproduce the problem. This is what I have so far: http://jsfiddle.net/ptomblin/32x8axbs/

ptomblin commented 9 years ago

Found the problem: when selectBoxIt converts my options to a list, it doesn't ignore initial whitespace, so <option> foo </option> ends up as "\n foo\n" in the textarray, which confuses _searchAlgorithm.