1
0
mirror of synced 2024-11-25 14:26:03 +03:00

Fixes results count in accessible text

Only counts the selectable items in the list. (filter out selected item)
This commit is contained in:
Kay.L 2014-10-09 13:36:00 +08:00
parent eb0b9ff731
commit b7a7dd064e

View File

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