Skip to content

Commit

Permalink
fix(vakata#2755) : set the aria-expanded attribute on the link element
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier.camon committed Nov 10, 2023
1 parent b3135cf commit 5a2c77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jstree.js
Original file line number Diff line number Diff line change
Expand Up @@ -2722,7 +2722,7 @@
if(!animation) {
this.trigger('before_open', { "node" : obj });
d[0].className = d[0].className.replace('jstree-closed', 'jstree-open');
d[0].childNodes[1].setAttribute("aria-expanded", true);
d.children('.jstree-anchor').attr("aria-expanded", true);
}
else {
this.trigger('before_open', { "node" : obj });
Expand Down

0 comments on commit 5a2c77a

Please sign in to comment.