Ngx-chips: Placeholder property don't consider on load

Created on 12 Apr 2017  路  4Comments  路  Source: Gbuomprisco/ngx-chips

Placeholder is not considered at first entry. Thereafter, it works perfectly fine.

<tag-input [ngModel]="[]" [onlyFromAutocomplete]="true" theme='dark' [ngModelOptions]="{standalone: true}" [onlyFromAutocomplete]="true" [placeholder]="'Add Items'"> <tag-input-dropdown [showDropdownIfEmpty]="true" [autocompleteItems]="capabilities"> </tag-input-dropdown> </tag-input>
Initially, taking default placeholder "Enter a new tag"
screen shot 2017-04-12 at 5 54 32 pm

Later, considering the custom placeholder.
screen shot 2017-04-12 at 5 58 20 pm

Thanks,
Aniket

Most helpful comment

Change placeholder to secondaryPlaceholder. I got confused the first time too.

All 4 comments

Change placeholder to secondaryPlaceholder. I got confused the first time too.

Thanks. But this module have many issues in devices.

I need to change "Enter a new tag" to "Add people" and "+ Tag" to "+ People", can you please tell me the solution for this?

[placeholder]="'Add people'" [secondaryPlaceholder]="'People'"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jfknoepfli picture jfknoepfli  路  3Comments

rspandi1985 picture rspandi1985  路  4Comments

HDaghash picture HDaghash  路  4Comments

MrBra1nwash picture MrBra1nwash  路  4Comments

Ignasimg picture Ignasimg  路  4Comments