Browse Source

Fix issue with selection refocus changes causing menu not to open with down arrow key

pull/3975/head
Jack Lukic 8 years ago
parent
commit
c43d464a82
2 changed files with 4 additions and 1 deletions
  1. 2
      RELEASE-NOTES.md
  2. 3
      src/definitions/modules/dropdown.js

2
RELEASE-NOTES.md

@ -28,6 +28,7 @@
- **Form Validation** - Revalidating a field `on: blur` could cause fields not yet interacted with to be validated #3606 - **Form Validation** - Revalidating a field `on: blur` could cause fields not yet interacted with to be validated #3606
- **Rail** - Fixed incorrect width for `close rail` and `very close rail` caused by variable addition with mixed units `px` + `em` #3835 - **Rail** - Fixed incorrect width for `close rail` and `very close rail` caused by variable addition with mixed units `px` + `em` #3835
- **Search** - A previous unfinished XHR query aborting would cause the next query to fail #2779 - **Search** - A previous unfinished XHR query aborting would cause the next query to fail #2779
- **Video** - Fixed issue with `change` behavior not working properly when correctly to change videos.
**Bugs** **Bugs**
- **API** - Using `onResponse` with `dataType` other than JSON or JSONP would cause an error. (Not allowing plain text responses to be translated) #3653 - **API** - Using `onResponse` with `dataType` other than JSON or JSONP would cause an error. (Not allowing plain text responses to be translated) #3653
@ -47,6 +48,7 @@
- **Dropdown** - Seach selection would lose search input focus when clicking on a choice #3790 - **Dropdown** - Seach selection would lose search input focus when clicking on a choice #3790
- **Form** - Grouped `fields` and `field` would cause different margin collapse, making `fields` include larger gaps between content #3717 - **Form** - Grouped `fields` and `field` would cause different margin collapse, making `fields` include larger gaps between content #3717
- **Form** - Remove deprecated `size()` method in `prompt` #3655 **Thanks @SimonArdrey** - **Form** - Remove deprecated `size()` method in `prompt` #3655 **Thanks @SimonArdrey**
- **Grid** - Fixed issue where `vertically divided` grid would have top margin in first `row` group
- **Grid** - `centered` content would cause `justified` content to appear aligned left. #3496 - **Grid** - `centered` content would cause `justified` content to appear aligned left. #3496
- **Icon** - Sizes smaller tham `small` were using with `rem` #3782 - **Icon** - Sizes smaller tham `small` were using with `rem` #3782
- **Input** - Fixes issue with `dropdown` or button on the left side of an `action` input not properly rounding - **Input** - Fixes issue with `dropdown` or button on the left side of an `action` input not properly rounding

3
src/definitions/modules/dropdown.js

@ -1393,8 +1393,9 @@ $.fn.dropdown = function(parameters) {
event.preventDefault(); event.preventDefault();
} }
// down arrow (open menu) // down arrow (open menu)
if(pressedKey == keys.downArrow) {
if(pressedKey == keys.downArrow && !module.is.visible()) {
module.verbose('Down key pressed, showing dropdown'); module.verbose('Down key pressed, showing dropdown');
module.select.firstUnfiltered();
module.show(); module.show();
event.preventDefault(); event.preventDefault();
} }

Loading…
Cancel
Save