Skip to content

Commit

Permalink
Fix #3743 line break in multiple select dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Feb 23, 2016
1 parent 7e750cb commit 4065eea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

**Bugs**
- **Dropdown** - Fixed issue where `apiSettings` was not defaulting to use `cache: 'local'` as specified in the docs
- **Dropdown** - Fixed issue where long dropdown text entry with `allowAdditions` would cause input to mistakingly drop to next line early #3743
- **Dropdown** - Fixed issue where dropdowns with sub-menus would not properly activate on mobile #3183
- **Form** - Fixed issue where grouped `fields` and `field` would cause different margin collapse, making `fields` include larger gaps between content #3717
- **Menu** - Fixed issue with `stackable` menu where `left/right` `menu` or `item` would incorrectly be floated when stacked. #3604
Expand Down
6 changes: 6 additions & 0 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2243,6 +2243,9 @@ $.fn.dropdown = function(parameters) {
return;
}
module.debug('Setting selected menu item to', $selectedItem);
if(module.is.multiple()) {
module.remove.searchWidth();
}
if(module.is.single()) {
module.remove.activeItem();
module.remove.selectedItem();
Expand Down Expand Up @@ -2549,6 +2552,9 @@ $.fn.dropdown = function(parameters) {
message: function() {
$menu.children(selector.message).remove();
},
searchWidth: function() {
$search.css('width', '');
},
searchTerm: function() {
module.verbose('Cleared search term');
$search.val('');
Expand Down

0 comments on commit 4065eea

Please sign in to comment.