Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'addOnBlur' attribute to Chips #4838

Closed
mertsincan opened this issue May 27, 2019 · 6 comments

Comments

Projects
None yet
2 participants
@mertsincan
Copy link
Member

commented May 27, 2019

Whether to add an item when the input loses focus.

@mertsincan mertsincan added this to the 7.1 milestone May 27, 2019

@mertsincan mertsincan self-assigned this May 27, 2019

@demanzano

This comment has been minimized.

Copy link

commented Jun 10, 2019

I got a NPE if I do not explicity include the attrubute
addOnBlur="false"
on p:chips !

Here it is:

23:04:56,255 SEVERE [org.primefaces.application.exceptionhandler.PrimeExceptionHandler] (default task-6) null: java.lang.NullPointerException
at org.primefaces.component.chips.Chips.isAddOnBlur(Chips.java:127)
at org.primefaces.component.chips.ChipsRenderer.encodeScript(ChipsRenderer.java:189)

@mertsincan

This comment has been minimized.

Copy link
Member Author

commented Jun 11, 2019

Hi @demanzano,

I couldn't replicate it. It works fine for me;

<p:chips id="chips" />

Or 
<p:chips id="chips" addOnBlur="false" />
@mertsincan

This comment has been minimized.

Copy link
Member Author

commented Jun 11, 2019

I think you use 6.2.21. Is it right?

@demanzano

This comment has been minimized.

Copy link

commented Jun 11, 2019

it happens to me regularly, my setup is: Wildfly 15, Java EE 8, PF 6.2.21, PFext 6.2.10 running on Mac. I agree it's very strange, I don't know why...

@mertsincan

This comment has been minimized.

Copy link
Member Author

commented Jun 11, 2019

Merge bug :( Fixed for 6.2.22. Sorry for the mistake.
#4878

Best Regards,

@demanzano

This comment has been minimized.

Copy link

commented Jun 11, 2019

Thank you very much for very quick answer & fix !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.