Page 1 of 1

Autocomplete multiple with selecLimit=1 don´t remove Item selected

Posted: 09 Mar 2020, 19:53
by dblanco
Hello,

When I use the Autocomplete component with the properties multiple = true and selectLimit = 1, it is not possible to delete the item that is selected.
This error appeared to me when updating to primefaces 6.2.
Previously it worked with Primefaces version 6.1.4 and Barcelona Theme version 1.0.4.
I have tried Primefaces version 7.0 and versions 1.0.5 and 2.0.0 of Theme Barcelona.
I have tried Primefaces versions 6.2 and 7.0 without the Barcelona Theme and it works perfectly, that's why I thought the problem is Theme.

Re: Autocomplete multiple with selecLimit=1 don´t remove Item selected

Posted: 17 Mar 2020, 20:05
by mert.sincan
Hi,

Good catch!!! Please remove the following line from layout.js;

Code: Select all

// line 636
	if(PrimeFaces.isIE(8)) {
        	$this.input.val('');
        }
Fixed for the next version.

Best Regards,

Re: Autocomplete multiple with selecLimit=1 don´t remove Item selected

Posted: 18 Mar 2020, 12:57
by dblanco
Hi,

Problem solved, the proposed solution works perfectly.
Thank you.

Re: Autocomplete multiple with selecLimit=1 don´t remove Item selected

Posted: 19 Mar 2020, 21:41
by mert.sincan
Glad to hear, thanks a lot for the update!

Best Regards,