Skip to content
This repository was archived by the owner on Aug 17, 2021. It is now read-only.

Commit 97b22d2

Browse files
committed
Merge pull request #56 from dfan1028/customize-tabindex-attribute
Add ability to customize tabindex attribute
2 parents 1a2dbb8 + 08ba45d commit 97b22d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/directive.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
response: '=?ngModel',
1818
key: '=',
1919
theme: '=?',
20+
tabindex: '=?',
2021
onCreate: '&',
2122
onSuccess: '&',
2223
onExpire: '&'
@@ -62,7 +63,8 @@
6263

6364
vcRecaptcha.create(elm[0], key, callback, {
6465

65-
theme: scope.theme || attrs.theme || null
66+
theme: scope.theme || attrs.theme || null,
67+
tabindex: scope.tabindex || attrs.tabindex || null
6668

6769
}).then(function (widgetId) {
6870
// The widget has been created

0 commit comments

Comments
 (0)