From 0e2e0e5c7f596016b810b305bc5bbe043060151c Mon Sep 17 00:00:00 2001 From: Vladyslav Lubenskyi Date: Mon, 20 Jun 2016 19:14:31 +0200 Subject: [PATCH] Added support of tabindex attribute. See the https://github.com/selectize/selectize.js/blob/253e1dd936796d95487cbced32d4a05f2f3781c6/src/selectize.js#L16 --- dist/angular-selectize.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/angular-selectize.js b/dist/angular-selectize.js index a009975..78c9c0b 100755 --- a/dist/angular-selectize.js +++ b/dist/angular-selectize.js @@ -7,7 +7,7 @@ angular.module('selectize', []).value('selectizeConfig', {}).directive("selectiz return { restrict: 'EA', require: '^ngModel', - scope: { ngModel: '=', config: '=?', options: '=?', ngDisabled: '=', ngRequired: '&' }, + scope: { ngModel: '=', config: '=?', options: '=?', ngDisabled: '=', ngRequired: '&', tabindex: '=' }, link: function(scope, element, attrs, modelCtrl) { var selectize, @@ -16,6 +16,10 @@ angular.module('selectize', []).value('selectizeConfig', {}).directive("selectiz scope.options = scope.options || []; scope.config = scope.config || {}; + if (!isNaN(scope.tabindex)) { + element[0].tabIndex = scope.tabindex; + } + var isEmpty = function(val) { return val === undefined || val === null || !val.length; //support checking empty arrays };