News for hackers. Stuff that matters.
Re:Select2 - A better way to make select boxes (with jQuery) by nhebb on Thursday June 07, 2012 @12:28AM (#4077613)
It breaks normal usage. Tab to a normal Select, press 'n' 3 times and you get New Hampshire (the 3rd item starting with 'n'). Tab to Select2 press 'n' 3 times and you get nothing.
Re:Select2 - A better way to make select boxes (with jQuery) by ned on Thursday June 07, 2012 @03:42AM (#4078003)
It also breaks two OSX defaults:

  - spacebar on a highlighted item should select it

  - the select menu should open on mousedown, not mouseup.
Otherwise, it's a very nice piece of work.
Re:Select2 - A better way to make select boxes (with jQuery) by wittjeff on Thursday June 07, 2012 @08:29AM (#4078631)
Maintaining compatibility with existing keyboard UI should be considered essential for accessibility. And I haven't bothered to check compatibility with ARIA.
Re:Select2 - A better way to make select boxes (with jQuery) by jakejake on Thursday June 07, 2012 @03:05AM (#4077942)
True but this also supports dynamically loaded data with infinite scrolling and other things that a normal select can't do. I suppose it's a trade off.
Re:Select2 - A better way to make select boxes (with jQuery) by alttab on Thursday June 07, 2012 @08:11AM (#4078558)
Hey, twitter did it with Bootstrap. Javascript is the assembly of the internet so lets get busy re-inventing and then breaking every wheel known to man.
Re:Select2 - A better way to make select boxes (with jQuery) by ZoFreX on Thursday June 07, 2012 @06:00AM (#4078251)
In Firefox on OS X most of the Select2 inputs don't seem to be in the tab order at all, they get skipped over. If I do have one selected and type "new" I expect to see "new hampshire" (or something else starting with new), but it drops the first character, opens the drop down and I have "ew" in the text field.
Re:Select2 - A better way to make select boxes (with jQuery) by hexvector on Thursday June 07, 2012 @02:16PM (#4080482)
Pressing a key 'n' times was a crutch for select boxes without a text filter. This is not needed here and doesn't even make sense.
Re:Select2 - A better way to make select boxes (with jQuery) by ams6110 on Thursday June 07, 2012 @10:41PM (#4082376)
Except people expect select lists to work like that. This is nicely done, but it breaks a number of established conventions about how select lists work.