Skip to content

I have to admit it's getting better (better)

Compare
Choose a tag to compare
@pfiller pfiller released this 26 Jul 18:13
· 413 commits to master since this release

Optionally hide selected & disabled options

By default, Chosen shows disabled & selected options with a greyed-out style. For some use cases, this can create unwanted noise. Now, you can pass display_selected_options: false and/or display_disabled_options: false when applying Chosen to have those options excluded from search results.

See #1404 for more.

Un-Chosen

Sometimes, you need to remove Chosen from the page. Chosen now provides an interface for doing that which cleans up the created HTML and event listeners and returns the original select to its place on the page.

// jQuery version
$('#chzn-select').chosen();
$('#chzn-select').chosen('destroy');

// Prototype version
var chosen = new Chosen('#chzn-select');
chosen.destroy();

See #1396 for more.

Chosen disabled by default on iPhone/iPod/Android mobile device

On small screen devices, Chosen is not an improvement over the native select controls. While search is available, the keyboard covers up a large chunk of the search results and finding your desired selection can be difficult. For these devices, Chosen simply leaves the original select field alone.

See #1388 for more.

Single backspace clears choices

Previously, it took two presses of backspace to remove choices from multiple selects. This is still an option for the time being, but the default has been switched to requiring one press.

See #1375 for more.

Misc Bug Fixes, Improvements and Code Changes

  • CSS Updates #1368, #1371
  • Prevent text selection on Chosen #1374
  • No longer expose classes to window context #1389
  • Single select value fix #1392
  • Remove javascript:void and attr references #1385, #1377
  • Always clear result highlight #1407
  • Replace characters only once #1411

Misc Project Maintenance Changes

  • Document all the things. #1366, #1376, #1383
  • Add Gemfile for compass dependency #1373
  • Update copyright and license link #1397
  • Add @koenpunt as a maintainer #1399
  • Add anchors to documentation headers #1395
  • Updated stackoverflow instructions #1403