Skip to content

Commit

Permalink
issue-1723: jquery.a11y a11y_text insert text when accessibility is d…
Browse files Browse the repository at this point in the history
…isabled
  • Loading branch information
danielstorey authored and oliverfoster committed Aug 18, 2017
1 parent 448c654 commit 34be4d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/js/libraries/jquery.a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,13 @@
$.fn.a11y_text = function(text) {
var options = $.a11y.options;

if (!options.isTabbableTextEnabled) return this;
if (!options.isTabbableTextEnabled) {
if (text) {
this.html(text);
}

return this;
}

for (var i = 0; i < this.length; i++) {
// If an argument is given then convert that to accessible text
Expand Down

0 comments on commit 34be4d3

Please sign in to comment.