From 9864301d6800a502fe337fbedc8b95287c5c0d19 Mon Sep 17 00:00:00 2001 From: Basit Ali Date: Tue, 22 Oct 2019 12:30:24 +0500 Subject: [PATCH] Fixes https://github.com/maranran/eslint-plugin-vue-a11y/issues/20 --- lib/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/index.js b/lib/utils/index.js index c1092ea..71bef57 100644 --- a/lib/utils/index.js +++ b/lib/utils/index.js @@ -55,7 +55,7 @@ module.exports = { return (ariaLabelProp && this.hasAttributeValue(ariaLabelProp)) || (arialLabelledByProp && this.hasAttributeValue(arialLabelledByProp)); }, getAttribute (node, attr) { - return utils.getAttribute(node, attr) || this.getDirective(node, 'bind', attr); // todo eslint-plugin-vue util.getDirective 稳定后换回 + return utils.getAttribute(node, attr) || utils.getDirective(node, 'bind', attr); // todo eslint-plugin-vue util.getDirective 稳定后换回 }, getDirective (node, name, argument) { assert(node && node.type === 'VElement')