Skip to content

Commit

Permalink
Merge pull request #20 from databox/improvement/hidden-prop
Browse files Browse the repository at this point in the history
Improvement/hidden prop
  • Loading branch information
nulle authored Mar 22, 2019
2 parents f012fe0 + bce162f commit 71333c4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions dist/js/select2.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,10 @@ S2.define('select2/results',[
attrs['aria-disabled'] = 'true';
}

if (data.hidden) {
attrs['aria-hidden'] = 'true';
}

if (data.id == null) {
delete attrs['aria-selected'];
}
Expand Down
2 changes: 1 addition & 1 deletion dist/js/select2.full.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/js/select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,10 @@ S2.define('select2/results',[
attrs['aria-disabled'] = 'true';
}

if (data.hidden) {
attrs['aria-hidden'] = 'true';
}

if (data.id == null) {
delete attrs['aria-selected'];
}
Expand Down
2 changes: 1 addition & 1 deletion dist/js/select2.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/js/select2/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ define([
attrs['aria-disabled'] = 'true';
}

if (data.hidden) {
attrs['aria-hidden'] = 'true';
}

if (data.id == null) {
delete attrs['aria-selected'];
}
Expand Down

0 comments on commit 71333c4

Please sign in to comment.