Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 2ccbc9d

Browse files
author
Robert Messerle
committed
fix(autocomplete): ngMessages should once again work with mdAutocomplete
Closes #3401
1 parent 98e91ae commit 2ccbc9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/autocomplete/js/autocompleteDirective.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function MdAutocomplete ($mdTheming, $mdUtil) {
189189
id="fl-input-{{$mdAutocompleteCtrl.id}}"\
190190
name="{{inputName}}"\
191191
autocomplete="off"\
192-
ng-required="isRequired"\
192+
ng-required="$mdAutocompleteCtrl.isRequired"\
193193
ng-minlength="inputMinlength"\
194194
ng-maxlength="inputMaxlength"\
195195
ng-disabled="$mdAutocompleteCtrl.isDisabled"\
@@ -212,7 +212,7 @@ function MdAutocomplete ($mdTheming, $mdUtil) {
212212
name="{{inputName}}"\
213213
ng-if="!floatingLabel"\
214214
autocomplete="off"\
215-
ng-required="isRequired"\
215+
ng-required="$mdAutocompleteCtrl.isRequired"\
216216
ng-disabled="$mdAutocompleteCtrl.isDisabled"\
217217
ng-model="$mdAutocompleteCtrl.scope.searchText"\
218218
ng-keydown="$mdAutocompleteCtrl.keydown($event)"\

0 commit comments

Comments
 (0)