summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Moore <hello@jacklmoore.com>2015-03-13 09:15:37 -0400
committerJack Moore <hello@jacklmoore.com>2015-03-13 09:15:37 -0400
commitbd4061283cd9fbb90fe6ff04327b2ad865b8204f (patch)
tree3c16f8715f788872c94c08075eb4c7f07dfa8d30
parent64e9f33aba55f6aebcf34e91bc811296089e6ec8 (diff)
parentf78010040b1e964e3827067f5f0e30275a598ca1 (diff)
downloadautosize-origin/v1.zip
autosize-origin/v1.tar.gz
autosize-origin/v1.tar.bz2
Merge pull request #209 from oBlissing/v1origin/v1
Allow assistive technologies to properly skip the mirror element
-rw-r--r--jquery.autosize.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jquery.autosize.js b/jquery.autosize.js
index 4e96699..c8dd4ec 100644
--- a/jquery.autosize.js
+++ b/jquery.autosize.js
@@ -31,7 +31,7 @@
mirrored,
// the mirror element, which is used to calculate what size the mirrored element should be.
- mirror = $('<textarea tabindex="-1"/>').data('autosize', true)[0];
+ mirror = $('<textarea aria-hidden="true" tabindex="-1"/>').data('autosize', true)[0];
// border:0 is unnecessary, but avoids a bug in Firefox on OSX
mirror.style.cssText = "position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;";