From 1fa6625ab570035b360613c9bd19469eb32480ce Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Sun, 12 Mar 2017 20:59:29 -0400 Subject: [PATCH] Fix #5113 Dropdown blur issue --- RELEASE-NOTES.md | 5 ++++- src/definitions/modules/dropdown.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index b31384e81..63701c236 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -2,8 +2,11 @@ ### Version 2.2.11 - February 21, 2017 -**Bugs** +**Critical Bugs** +- **Dropdown** - Fix search input inside dropdown menu causing dropdown to close before selection when selecting an item #5113 + +**Bugs** - **Button** - Fixes `@basicActiveBoxShadow` being used incorrectly in basic button variables - **Visibility** - Fixes issue where visibility events would occur improperly when using a `context` that have `overflow-x` or `overflow-y` set to `auto` - **Dropdown** - Fixes an issue where dropdown would not correctly open `upward` at bottom edge of the screen when using a `context` with `overflow-x` or `overflow-y` set to `auto` diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 2255e724f..99aaa3362 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -975,7 +975,7 @@ $.fn.dropdown = function(parameters) { }, blur: function(event) { pageLostFocus = (document.activeElement === this); - if(!willRefocus) { + if(module.is.searchSelection() && !willRefocus) { if(!itemActivated && !pageLostFocus) { if(settings.forceSelection) { module.forceSelection();