2
0
Эх сурвалжийг харах

Merge pull request #1372 from wprater/patch-2

add attributes available for Aria accessibility
Evan You 10 жил өмнө
parent
commit
0f249f27b7

+ 4 - 0
src/directives/public/bind.js

@@ -34,6 +34,10 @@ module.exports = {
         attr === 'class' ||
         // data attributes are allowed globally
         /^data-/.test(attr) ||
+        // aria attributes are allowed globally
+        /^aria-/.test(attr) ||
+        // role available
+        (attr === 'role') ||
         // for available
         (attr === 'for' && 'htmlFor' in this.el) ||
         // camelized prop available