Skip to content

Releases: harvesthq/chosen

v0.9.13

02 Jul 21:46
Compare
Choose a tag to compare

New Features & Improvements

Percentage Width Support (#1141): Chosen can now be initialized with a width. This is useful for setting a percentage width for things like responsive design:

$("select").chosen({ width: '50%' }); // width in px, %, em, etc

Bug Fixes && Refactoring

  • Better container reference #1151
  • Fix issue when destroying last choice #1149
  • Use selectedIndex for tracking change events. #1147
  • Better IE Disabling #1144
  • Dropdown use css positioning for top position #1143
  • Fix bug when deleting last item #1142
  • CSS Centering Fix #1120
  • Use New CoffeeScript #1125
  • Chosen License #1111
  • Update placeholder text with liszt:updated #1107
  • Fix strange event bubbling #1055

jQuery 1.9 Support

02 Jul 21:53
Compare
Choose a tag to compare

Improvements

  • jQuery 1.9 support (removed browser) #950

Bug Fixes

Misc

Retain Select Classes, Disable Split Words

02 Jul 22:06
Compare
Choose a tag to compare

Add an option to inherit initial select classes

When enabled, this option will grab any class names off the initial select and add them to Chosen's container div:

Take:

<select id="copyClasses" classes="this-class-comes-with">
  ...
</select>

Run:

$("#copyClasses").chosen({ inherit_select_classes: true; });

Get:

<div id="copyClasses_chzn" class="... this-class-comes-with">
  ...
</div>

(#917)

Add an option to disable searching split words

By default, Chosen will attempt to search across words by splitting option text at a space. For example, a search of "Stat" will match "United States". This can now be disabled:

$("select").chosen({ enable_split_word_search: false });

(#824, #940)

Copy Select Title, Bug Fixes

02 Jul 22:10
Compare
Choose a tag to compare

Improvements

  • Handle select title (#914): applies a select's title attribute to Chosen's container div if it exists.

Bug Fixes

  • Fiexd Firefox mousedown drag issue (#902)
  • Fixed the handling of ctrl key for multiple select (#916)
  • Fixed multiple select placeholder clipping bug (#920)
  • Expose Chosen to the window object (#929)