Browse Source

#2824, Fix issue where single search selection would filter active item and not re-display on cleared filter. Additionally fixes issue with forceSelection not working on pageLosesFocus #2824

pull/2414/merge
Jack Lukic 9 years ago
parent
commit
3a1598356b
2 changed files with 8 additions and 1 deletions
  1. 2
      RELEASE-NOTES.md
  2. 7
      src/definitions/modules/dropdown.js

2
RELEASE-NOTES.md

@ -44,6 +44,7 @@
- **Dropdown** - Fix `left menu` inside `ui menu` appearing horizontally #2778
- **Dropdown** - `forceSelection` no longer sets current value in search selection when current query is blank #2058
- **Dropdown** - Fixed issue where "no results" message would be still be visible before search query on input focus #2824
- **Dropdown** - Fixed issue where selected item would not be shown when being re-shown after filtering with single search selection #2824
**[Community Bug Fixes](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.1.0+is%3Aclosed)**
- **Menu** - Fixes tabular menu missing variable for background. **Thanks @frontdevde**
@ -65,6 +66,7 @@
- **Menu** - Fixed issue with `labeled input` text inside menu not appearing vertically centered
- **Menu** - Fixed hybrid initialization not creating `menu` correctly. Fixed docs example of hybrid `<select>` initialization
- **Dropdown/Tab** - Fixed an instance where `metadata` was not referencing settings metadata value
- **Dropdown** - Fixed issue where `forceSelection` would not occur when `pageLostFocus` (clicked into another tab and back)
### Version 2.0.8 - August 10, 2015

7
src/definitions/modules/dropdown.js

@ -835,6 +835,11 @@ $.fn.dropdown = function(parameters) {
module.hide();
}
}
else if(pageLostFocus) {
if(settings.forceSelection) {
module.forceSelection();
}
}
}
},
icon: {
@ -2465,7 +2470,7 @@ $.fn.dropdown = function(parameters) {
if(settings.useLabels && module.has.maxSelections() ) {
return;
}
if(settings.useLabels) {
if(settings.useLabels && module.is.multiple()) {
$item.not('.' + className.active).removeClass(className.filtered);
}
else {

Loading…
Cancel
Save