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

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
dblanco
Posts: 35
Joined: 02 Oct 2015, 09:13

09 Mar 2020, 19:53

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.
PrimeFaces 12.0 | JSF 2.3 | Barcelona Theme 5.0.0

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

17 Mar 2020, 20:05

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,

dblanco
Posts: 35
Joined: 02 Oct 2015, 09:13

18 Mar 2020, 12:57

Hi,

Problem solved, the proposed solution works perfectly.
Thank you.
PrimeFaces 12.0 | JSF 2.3 | Barcelona Theme 5.0.0

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

19 Mar 2020, 21:41

Glad to hear, thanks a lot for the update!

Best Regards,

Post Reply

Return to “Barcelona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests