Browse Source

#2199 Fixes preventDefault called even without sub menu

pull/2225/head
jlukic 9 years ago
parent
commit
89c1138cd1
2 changed files with 6 additions and 2 deletions
  1. 4
      RELEASE-NOTES.md
  2. 4
      src/definitions/modules/dropdown.js

4
RELEASE-NOTES.md

@ -1,5 +1,9 @@
## RELEASE NOTES ## RELEASE NOTES
### Version 1.12.2 - May 4, 2015
**Bugs**
- **Dropdown** - Fixed `left` and `right` arrow does not move input cursor with `visible selection dropdown`. Event accidentally prevented by `sub menu` shortcut keys.
### Version 1.12.1 - April 26, 2015 ### Version 1.12.1 - April 26, 2015

4
src/definitions/modules/dropdown.js

@ -585,8 +585,8 @@ $.fn.dropdown = function(parameters) {
.closest(selector.item) .closest(selector.item)
.addClass(className.selected) .addClass(className.selected)
; ;
event.preventDefault();
} }
event.preventDefault();
} }
// right arrow (show sub-menu) // right arrow (show sub-menu)
if(pressedKey == keys.rightArrow) { if(pressedKey == keys.rightArrow) {
@ -600,8 +600,8 @@ $.fn.dropdown = function(parameters) {
.find(selector.item).eq(0) .find(selector.item).eq(0)
.addClass(className.selected) .addClass(className.selected)
; ;
event.preventDefault();
} }
event.preventDefault();
} }
// up arrow (traverse menu up) // up arrow (traverse menu up)
if(pressedKey == keys.upArrow) { if(pressedKey == keys.upArrow) {

Loading…
Cancel
Save