From 77ea616d0c19e377e3a948e6e5d338bb02cabcc0 Mon Sep 17 00:00:00 2001 From: Kevin Warrington Date: Mon, 22 Oct 2012 17:00:03 -0600 Subject: [PATCH] fix issue #517 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 27385008..c6f11fb7 100644 --- a/select2.js +++ b/select2.js @@ -380,7 +380,7 @@ the specific language governing permissions and limitations under the Apache Lic } group.children=[]; $(datum.children).each2(function(i, childDatum) { process(childDatum, group.children); }); - if (group.children.length) { + if (group.children.length || query.matcher(t, text(group))) { collection.push(group); } } else {