Skip to content

Commit

Permalink
Fixes clearable dropdowns not working when not on:click #6594
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Oct 13, 2018
1 parent 36d5857 commit c26bb1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- **Gulp** - Updated all gulp dependencies to most recent released versions with modifications to tasks as necessary.

**Bug Fixes**
- **Dropdown** - `clearable` dropdown now works with dropdown that arent `on:click`, like `hover` or `manual` triggers. #6594
- **Modal** - Fixed `fullscreen modal` having incorrect left offset with flex modals #6587
- **Embed** - Embed will now correctly remove DOM metadata on `destroy`
- **Grid** - Fix issue with `very relaxed vertically divided grid` having wrong margins on dividers
Expand Down
4 changes: 2 additions & 2 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,6 @@ $.fn.dropdown = function(parameters) {
else {
if(settings.on == 'click') {
$module
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
.on('click' + eventNamespace, module.event.test.toggle)
;
}
Expand All @@ -621,6 +620,7 @@ $.fn.dropdown = function(parameters) {
;
}
$module
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
.on('mousedown' + eventNamespace, module.event.mousedown)
.on('mouseup' + eventNamespace, module.event.mouseup)
.on('focus' + eventNamespace, module.event.focus)
Expand Down Expand Up @@ -1022,7 +1022,7 @@ $.fn.dropdown = function(parameters) {
if($icon.hasClass(className.clear)) {
module.clear();
}
else {
else if (module.can.click()) {
module.toggle();
}
}
Expand Down

0 comments on commit c26bb1d

Please sign in to comment.