Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 1e66aad

Browse files
committed
Angular 1.4.1 breaks one test:
- the test checks input type attribute should be 'text' when not specifed Don't know really why but changing scope.type to scope.inputType fixed it.
1 parent 6422ca0 commit 1e66aad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

angucomplete-alt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
// Set the default template for this directive
5050
$templateCache.put(TEMPLATE_URL,
5151
'<div class="angucomplete-holder" ng-class="{\'angucomplete-dropdown-visible\': showDropdown}">' +
52-
' <input id="{{id}}_value" name={{inputName}} ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="searchStr" ng-disabled="disableInput" type="{{type}}" 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)"/>' +
52+
' <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)"/>' +
5353
' <div id="{{id}}_dropdown" class="angucomplete-dropdown" ng-show="showDropdown">' +
5454
' <div class="angucomplete-searching" ng-show="searching" ng-bind="textSearching"></div>' +
5555
' <div class="angucomplete-searching" ng-show="!searching && (!results || results.length == 0)" ng-bind="textNoResults"></div>' +
@@ -712,7 +712,7 @@
712712
}
713713
}
714714

715-
scope.type = attrs.type ? attrs.type : 'text';
715+
scope.inputType = attrs.type ? attrs.type : 'text';
716716

717717
// set strings for "Searching..." and "No results"
718718
scope.textSearching = attrs.textSearching ? attrs.textSearching : TEXT_SEARCHING;

0 commit comments

Comments
 (0)