Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(autocomplete): prevents aria message on selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Messerle committed Feb 25, 2015
1 parent 0bd7afb commit e2148f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/autocomplete/js/autocompleteController.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
}

function updateMessages () {
if (self.hidden) return;
switch (self.matches.length) {
case 0: return self.messages.splice(0);
case 1: return self.messages.push({ display: 'There is 1 match available.' });
Expand Down

0 comments on commit e2148f1

Please sign in to comment.