Releases: harvesthq/chosen
Releases · harvesthq/chosen
v0.9.13
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
Improvements
- jQuery 1.9 support (removed browser) #950
Bug Fixes
Misc
- jQuery manifest (for making Chosen easily available from the jQuery plugin registry)
Retain Select Classes, Disable Split Words
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 });
Copy Select Title, Bug Fixes
Improvements
- Handle select title (#914): applies a
select
's title attribute to Chosen's containerdiv
if it exists.