Browse Source

Fix placeholder text when useLabels: false and 0 selected

pull/2907/head
jlukic 9 years ago
parent
commit
ade6ab536b
2 changed files with 7 additions and 1 deletions
  1. 1
      RELEASE-NOTES.md
  2. 7
      src/definitions/modules/dropdown.js

1
RELEASE-NOTES.md

@ -89,6 +89,7 @@
- **Dropdown** - Dropdown will no longer fire native `onchange` event on hidden input when setting value during initial load (unless `fireOnInit: true`) #2795 **Thanks @lauri-elevant**
- **Dropdown** - Fixed issue where `forceSelection` would not occur when `pageLostFocus` (clicked into another tab and back)
- **Dropdown** - Fixed issue where using the specific value `value="false"` would cause an option to not be removable from a multiple select
- **Dropdown** - When `useLabels: false` placeholder text will now show up when 0 items selected, instead of the text "0 items selected"
- **Dropdown/Tab** - Fixed an instance where `metadata` was not referencing settings metadata value
- **Form Validation** - Fixed issue with `get value(s)` where unchecked checkboxes would not correctly retrieve values
- **Input** `action input` and `labeled input` now have focused border on inner edge with label/button

7
src/definitions/modules/dropdown.js

@ -2550,7 +2550,12 @@ $.fn.dropdown = function(parameters) {
}
else {
module.remove.value(selectedValue, selectedText, $selected);
module.set.text(module.add.variables(message.count));
if(module.get.selectionCount() === 0) {
module.set.placeholderText();
}
else {
module.set.text(module.add.variables(message.count));
}
}
}
else {

Loading…
Cancel
Save