Skip to content

Commit 5a18492

Browse files
committed
Merge pull request select2#2726 from KayLeung/patch-1
Fixes results count in accessible text
2 parents 30ab851 + b7a7dd0 commit 5a18492

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ the specific language governing permissions and limitations under the Apache Lic
17141714
self.liveRegion.text(results.text());
17151715
}
17161716
else {
1717-
self.liveRegion.text(self.opts.formatMatches(results.find('.select2-result-selectable').length));
1717+
self.liveRegion.text(self.opts.formatMatches(results.find('.select2-result-selectable:not(".select2-selected")').length));
17181718
}
17191719
}
17201720

0 commit comments

Comments
 (0)