Browse Source

Fixes #4183 Fixes not working correctly since due to incorrect use of new function signature.

pull/4366/merge
Jack Lukic 8 years ago
parent
commit
24d2b34f53
2 changed files with 14 additions and 2 deletions
  1. 1
      RELEASE-NOTES.md
  2. 15
      src/definitions/modules/dropdown.js

1
RELEASE-NOTES.md

@ -4,6 +4,7 @@
**Bugs** **Bugs**
- **Dropdown** - `dropdown icon` no longer relies on stopping event propagation. This means using the dropdown icon will now cause other dropdowns to correctly hide. #3998 - **Dropdown** - `dropdown icon` no longer relies on stopping event propagation. This means using the dropdown icon will now cause other dropdowns to correctly hide. #3998
- **Dropdown** - Fixes `action: select` not working correctly since `2.2` due to incorrect use of new function signature.
### Version 2.2.2 - July 07, 2016 ### Version 2.2.2 - July 07, 2016

15
src/definitions/modules/dropdown.js

@ -1554,8 +1554,19 @@ $.fn.dropdown = function(parameters) {
}, },
select: function(text, value, element) { select: function(text, value, element) {
// mimics action.activate but does not select text
module.action.activate.call(element);
value = (value !== undefined)
? value
: text
;
if( module.can.activate( $(element) ) ) {
module.set.value(value, $(element));
if(module.is.multiple() && !module.is.allFiltered()) {
return;
}
else {
module.hideAndClear();
}
}
}, },
combo: function(text, value, element) { combo: function(text, value, element) {

Loading…
Cancel
Save