Skip to content

Commit 86485fc

Browse files
committed
feat: hide autocomplete while maxlength
1 parent 7447658 commit 86485fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/input-tags.template.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
</div>
1212

1313
<input-tags-auto-complete source="$ctrl.suggestions"
14+
ng-if="$ctrl.maxLength > $ctrl.tags.length"
1415
on-tag-add="$ctrl.addTag(tag)"
1516
visible="$ctrl.autocompleteVisible"></input-tags-auto-complete>
1617

@@ -20,10 +21,11 @@
2021
tabindex="{{$ctrl.tabindex}}"
2122
placeholder="{{$ctrl.placeholder}}"
2223
spellcheck="{{$ctrl.spellcheck}}"
24+
data-ng-if="$ctrl.maxLength > $ctrl.tags.length"
2325
data-ng-model="$ctrl.inputSearch"
2426
ng-model-options="{ debounce: $ctrl.inputDebounce }"
2527
data-ng-change="$ctrl.inputChange()"
2628
data-ng-disabled="$ctrl.disabled"
2729
data-ng-focus="$ctrl.triggerFocus($event)"
2830
data-ng-blur="$ctrl.triggerBlur($event)">
29-
</div>
31+
</div>

0 commit comments

Comments
 (0)