Skip to content

Releases: harvesthq/chosen

Officially Going to 1.0

30 Jul 16:10
Compare
Choose a tag to compare

Just over 2 years after Harvest announced Chosen, we decided to pull the trigger on a 1.0 release. This is long overdue as Chosen has been used in production sites for all of the two years it's existed, but ... here we are.

Notable Changes for 1.0

  • All CSS class names have been renamed from a chzn- root to a chosen- root.
  • All custom Chosen events starting with liszt are now prefaced with a chosen:

See #1412 for more details.

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

26 Jul 18:13
Compare
Choose a tag to compare

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

Optgroup Search and Other Improvements

17 Jul 16:41
Compare
Choose a tag to compare

Search Optgroups

Chosen now searches the text of option groups by default (though an option exists to disable this functionality). When an optgroup matches, all results in that group are shown in the search results. #1343

Misc Bug Fixes and Improvements

  • Change search match style #1344
  • Remove memoization of search field width. #1359
  • Remove Chosen's ID dependency #1360
  • Rebuild Search Results After liszt:updated #1361
  • Clear highlight when no results are found #1364

Use SASS for CSS generation.

11 Jul 18:08
Compare
Choose a tag to compare
  • Generate CSS from SASS #1320

SO. MUCH. SPEEDIER.

10 Jul 18:57
Compare
Choose a tag to compare

Speed Chosen up significantly (#1339)

Chosen's overall performance has been improved. This is most noticeable when using Chosen on selects containing hundreds or thousands of items. The pull request goes into greater detail about the changes and how much of a performance impact you can expect.

Misc Project Maintenance Changes

  • Fix broken RTL example #1331
  • Updated release procedure to remove S3 #1323
  • Include docsupport contents in zip #1321
  • Replace deprecated grunt-css with grunt-contrib-cssmin #1319

Removing Generated Files From Repository

02 Jul 21:31
Compare
Choose a tag to compare

This release removes all generated JS and CSS from Chosen's git repository. A bundled zip file will now be made available using Grunt.

This change will help reenforce Chosen's code conventions for a PR:

  1. Make all changes in CoffeeScript files, not JavaScript files.
  2. Use Grunt to build the JavaScript files.

Lots of Bug Fixes

02 Jul 21:33
Compare
Choose a tag to compare

This release contains a heap-load of bug fixes.

  • Replace prop for jQuery legacy support #1311
  • Prevent default on arrow down #1309
  • Explicitly add files for gh-pages #1307
  • Fix RTL Disabled Search Issue #1300
  • Fix scroll bug in Prototype version #1301
  • Read-only search field when search is disabled. #1294
  • Remove Grunt-Bump #1280
  • Make sure Chosen isn't disabled before showing results. #1282
  • Fix choice build after update #1286

Show Disabled Options

02 Jul 21:36
Compare
Choose a tag to compare

Feature Changes

  • Show disabled options (#1262): all options that match a given search are now displayed (previous versions hid selected or disabled options). Selected and disabled options will be displayed with a light gray style to differentiate them from other, selectable options.

Bug Fixes

  • Only attempt to hide the dropdown if it's showing #1277
  • Add more margin for single selects with allow_single_deselect #1257

Fixes, Refactoring and Guidelines

02 Jul 21:39
Compare
Choose a tag to compare

Contributing Guidelines #1236

Bug Fixes & Refactoring

  • Wrap for attribute in quotes #963b051ecb
  • Ensure choice count is reflective of actual selected item count. #1171
  • Delete choice refactor #1232
  • Fix scroll issue in Prototype version #1213
  • Use the better supported offsetWidth property to get a fields width #1172

Label Support, Improved Scrolling and Bug Fixes

02 Jul 21:43
Compare
Choose a tag to compare

New Features & Improvements

  • Add support for labels #1152
  • Isolate Chosen Scrolling #1155

Bug Fixes & Refactoring

  • Fixes bug with Isolated Scrolling #1186
  • Remove unused get_side_border_padding #1169
  • Fix issue when using both jQuery & Prototype #1168
  • Fix choices_click method #1163
  • Fix Right-to-Left scrollbar issue #1159