Skip to content

Commit

Permalink
Set and remove aria-expandend attribute when the popup opens and closes.
Browse files Browse the repository at this point in the history
  • Loading branch information
brunano21 committed Dec 6, 2016
1 parent 136b010 commit 0db5319
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,8 @@ define([
}
this.dropDown.focus();
}

this.focusNode.setAttribute("aria-expanded", "true");
}.bind(this));
};
}),
Expand All @@ -1003,6 +1005,7 @@ define([
// Closing the dropdown represents a commit interaction
this.handleOnChange(this.value); // emit "change" event
}
this.focusNode.removeAttribute("aria-expanded");
sup.apply(this, arguments);
};
}),
Expand Down

0 comments on commit 0db5319

Please sign in to comment.