diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index ffd025662..2a0c9ab5e 100644 --- a/RELEASE-NOTES.md +++ b/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 diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 375dee528..65bacb099 100644 --- a/src/definitions/modules/dropdown.js +++ b/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('');