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();
}