From 89c1138cd1bf5fc273c16eef660328515a910de8 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 4 May 2015 12:46:27 -0400 Subject: [PATCH] #2199 Fixes preventDefault called even without sub menu --- RELEASE-NOTES.md | 4 ++++ src/definitions/modules/dropdown.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index a6851d29b..c1e0e1313 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,5 +1,9 @@ ## 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 diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index fc189b09a..83cdadc60 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -585,8 +585,8 @@ $.fn.dropdown = function(parameters) { .closest(selector.item) .addClass(className.selected) ; + event.preventDefault(); } - event.preventDefault(); } // right arrow (show sub-menu) if(pressedKey == keys.rightArrow) { @@ -600,8 +600,8 @@ $.fn.dropdown = function(parameters) { .find(selector.item).eq(0) .addClass(className.selected) ; + event.preventDefault(); } - event.preventDefault(); } // up arrow (traverse menu up) if(pressedKey == keys.upArrow) {