Browse Source

Merge pull request #2726 from KayLeung/patch-1

Fixes results count in accessible text
Kevin Brown 10 years ago
parent
commit
5a184921b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1714,7 +1714,7 @@ the specific language governing permissions and limitations under the Apache Lic
                     self.liveRegion.text(results.text());
                     self.liveRegion.text(results.text());
                 }
                 }
                 else {
                 else {
-                    self.liveRegion.text(self.opts.formatMatches(results.find('.select2-result-selectable').length));
+                    self.liveRegion.text(self.opts.formatMatches(results.find('.select2-result-selectable:not(".select2-selected")').length));
                 }
                 }
             }
             }