Skip to content

Commit

Permalink
Merge branch 'fkeusch-57-tabindex'
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiden committed Jan 26, 2016
2 parents 33558e6 + e8cb2ea commit 861f3af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ It expects the returned results from remote API to have a root object. In the ab
| template-url | Customize the markup of the autocomplete template. [example page](https://ghiden.github.io/angucomplete-alt/#example14) | No | attribute | "/my-custom-template.html" |
| focus-first | Automatically select the first match from the result list. | No | @ | true |
| parse-input | A function or expression to parse input string before comparing into search process. | No | & | parseInput() |
| field-tabindex | Setting the tabindex attribute on the input field. | No | @ | field-tabindex="25" |


### Scrollbar
Expand Down
3 changes: 2 additions & 1 deletion angucomplete-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// Set the default template for this directive
$templateCache.put(TEMPLATE_URL,
'<div class="angucomplete-holder" ng-class="{\'angucomplete-dropdown-visible\': showDropdown}">' +
' <input id="{{id}}_value" name="{{inputName}}" ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="searchStr" ng-disabled="disableInput" type="{{inputType}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" ng-focus="onFocusHandler()" class="{{inputClass}}" ng-focus="resetHideResults()" ng-blur="hideResults($event)" autocapitalize="off" autocorrect="off" autocomplete="off" ng-change="inputChangeHandler(searchStr)"/>' +
' <input id="{{id}}_value" name="{{inputName}}" tabindex="{{fieldTabindex}}" ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="searchStr" ng-disabled="disableInput" type="{{inputType}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" ng-focus="onFocusHandler()" class="{{inputClass}}" ng-focus="resetHideResults()" ng-blur="hideResults($event)" autocapitalize="off" autocorrect="off" autocomplete="off" ng-change="inputChangeHandler(searchStr)"/>' +
' <div id="{{id}}_dropdown" class="angucomplete-dropdown" ng-show="showDropdown">' +
' <div class="angucomplete-searching" ng-show="searching" ng-bind="textSearching"></div>' +
' <div class="angucomplete-searching" ng-show="!searching && (!results || results.length == 0)" ng-bind="textNoResults"></div>' +
Expand Down Expand Up @@ -808,6 +808,7 @@
autoMatch: '@',
focusOut: '&',
focusIn: '&',
fieldTabindex: '@',
inputName: '@',
focusFirst: '@',
parseInput: '&'
Expand Down

0 comments on commit 861f3af

Please sign in to comment.