Placeholder not working for autocomplete widget - multiple

jQuery UI Widgets
Post Reply
vinbrown
Posts: 1
Joined: 02 Sep 2016, 22:54

02 Sep 2016, 22:57

I'm setting up an autocomplete field with a placeholder (see below for example), but the placeholder doesn't display. I've found that the placeholder only shows up if I set [multiple] to false. Is this by design? If so, it would be a great feature to add.

<p-autoComplete
id="customerIdField"
[(ngModel)]="customerIds"
[suggestions]="filteredCustomers"
(completeMethod)="filterCustomers($event)"
styleClass="vendor-customer-name"
[minLength]="1"
placeholder="getRecipientTypeName() + ' Name'"
field="name"
[multiple]="true">

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Sep 2016, 15:22

Are you using PrimeNG? Just want to make sure.

Pauline
Posts: 1
Joined: 05 Sep 2016, 10:27

05 Sep 2016, 10:41

I am using PrimeNg and have the same issue than vinbrown. Placeholder does not work when "multiple" attribute is true.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

14 Sep 2016, 08:44

Please post this question at PrimeNG forum or if you are sure that there is a problem, please create a github issue at;

https://github.com/primefaces/primeng/issues

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests