Skip to content

Commit

Permalink
Collapse: Fix typo for `aria-expanded attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 28, 2016
1 parent af89f10 commit d073914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/collapse-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
this._open = function(c) {
self.removeEvent();
self.addClass(c,'in');
c.setAttribute('area-expanded','true');
c.setAttribute('aria-expanded','true');
self.addClass(c,'collapsing');
setTimeout(function() {
var h = self.getMaxHeight(c);
Expand All @@ -108,7 +108,7 @@
},
this._close = function(c) {
self.removeEvent();
c.setAttribute('area-expanded','false');
c.setAttribute('aria-expanded','false');
c.style.height = self.getMaxHeight(c) + 'px';
setTimeout(function() {
c.style.height = '0px';
Expand Down

0 comments on commit d073914

Please sign in to comment.