Browse Source

Fix #3743 line break in multiple select dropdown

api-progress
Jack Lukic 8 years ago
parent
commit
4065eea2f2
2 changed files with 7 additions and 0 deletions
  1. 1
      RELEASE-NOTES.md
  2. 6
      src/definitions/modules/dropdown.js

1
RELEASE-NOTES.md

@ -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

6
src/definitions/modules/dropdown.js

@ -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();
@ -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('');

Loading…
Cancel
Save