From 08ba45d725018e0de5a5d7bec09adf84cb43391c Mon Sep 17 00:00:00 2001 From: Danny Fan Date: Fri, 20 Mar 2015 16:58:04 -0700 Subject: [PATCH] Add ability to customize tabindex attribute --- src/directive.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/directive.js b/src/directive.js index ab1c9a2..2f80699 100644 --- a/src/directive.js +++ b/src/directive.js @@ -17,6 +17,7 @@ response: '=?ngModel', key: '=', theme: '=?', + tabindex: '=?', onCreate: '&', onSuccess: '&', onExpire: '&' @@ -62,7 +63,8 @@ vcRecaptcha.create(elm[0], key, callback, { - theme: scope.theme || attrs.theme || null + theme: scope.theme || attrs.theme || null, + tabindex: scope.tabindex || attrs.tabindex || null }).then(function (widgetId) { // The widget has been created