primeui icon indicating copy to clipboard operation
primeui copied to clipboard

puiautocomplete [object object]

Open CODEheures opened this issue 8 years ago • 0 comments

when array is object [{label: lorem, value:1}] puiautocomplete find [object object]

In function puiautocomplete method search I change line 777 on v4.1.9: data.push({label:sourceArr[i], value: item}); becomes: data.push({label:itemLabel, value: item.value});

I took advantage of this change to change the filter also extend line 776 on v4.19: if(emptyQuery||itemLabel.indexOf(this.query) === 0) { becomes: if(emptyQuery||itemLabel.indexOf(this.query) >= 0) {

CODEheures avatar May 04 '16 19:05 CODEheures