From 6e9489435e4bf2e8714839cf114e507a6e90db89 Mon Sep 17 00:00:00 2001 From: Daniel Clausen Date: Mon, 8 Dec 2014 20:57:17 -0600 Subject: [PATCH] Add Allow-Clear support to Bootstrap Template --- src/bootstrap/match.tpl.html | 21 ++++++++++++--------- test/select.spec.js | 4 ++-- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/bootstrap/match.tpl.html b/src/bootstrap/match.tpl.html index b766d4680..37eb36d8e 100644 --- a/src/bootstrap/match.tpl.html +++ b/src/bootstrap/match.tpl.html @@ -1,9 +1,12 @@ - +
+ + + +
\ No newline at end of file diff --git a/test/select.spec.js b/test/select.spec.js index accb36376..2d1cf8795 100644 --- a/test/select.spec.js +++ b/test/select.spec.js @@ -83,7 +83,7 @@ describe('ui-select tests', function() { } function getMatchLabel(el) { - return $(el).find('.ui-select-match > span[ng-transclude]:not(.ng-hide)').text(); + return $(el).find('.ui-select-match > button:first > span[ng-transclude]:not(.ng-hide)').text(); } function clickItem(el, text) { @@ -97,7 +97,7 @@ describe('ui-select tests', function() { } function clickMatch(el) { - $(el).find('.ui-select-match').click(); + $(el).find('.ui-select-match > button:first').click(); scope.$digest(); }