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

Chips: Paste (Comma separated) is not working. #11407

Closed
HSnicolascerrejon opened this issue Feb 9, 2024 · 5 comments · Fixed by #11411 or #11781
Closed

Chips: Paste (Comma separated) is not working. #11407

HSnicolascerrejon opened this issue Feb 9, 2024 · 5 comments · Fixed by #11411 or #11781
Assignees
Labels
🐞 defect Bug...Something isn't working
Milestone

Comments

@HSnicolascerrejon
Copy link

Describe the bug

Chips Paste (Comma separated) is not working. You can check it in the showcase.

Reproducer

Paste
a,b,c
only one element is added: "a,b,c"

Expected behavior

Three elements are added: "a","b","c"

PrimeFaces edition

Community

PrimeFaces version

13.0.4

Theme

Saga

JSF implementation

Mojarra

JSF version

Java version

17

Browser(s)

No response

@HSnicolascerrejon HSnicolascerrejon added ‼️ needs-triage Issue needs triaging 🐞 defect Bug...Something isn't working labels Feb 9, 2024
@melloware melloware self-assigned this Feb 9, 2024
@melloware melloware removed the ‼️ needs-triage Issue needs triaging label Feb 9, 2024
@melloware melloware added this to the 13.0.6 milestone Feb 9, 2024
@melloware
Copy link
Member

Thanks for reporting it broke with this ticket: #9615

@HSnicolascerrejon
Copy link
Author

Hi! I've integrated 14.0.0-RC2 and the bug still persists. Will the fix be added to the final release?

Thxs a lot, regards!

@melloware
Copy link
Member

melloware commented Apr 8, 2024

@HSnicolascerrejon are you sure this fix was in 14.0.0-RC2.
Can you provide an executable example using the PrimeFaces Test project showing it is not working?

I just tested the PF showcase locally and its working fine.

@HSnicolascerrejon
Copy link
Author

Hi again,

I have not been able to reproduce the problem using the Test. It's a bit strange, I have two web applications, which are practically the same, and in one it does not have the expected behavior, but in the other it does ¯_(ツ)_/¯ . I haven't been able to find out why. At least where I really need it is where it is working.

On the other hand, I attach the Test project with a couple of "defects" that I have seen. The first is that if you do not explicitly put the 'separator=","' it does not take it (when according to the Tag documentation, it is the default value), it has no major importance, it is specified and it already works.

It also happens that if you add Listeners, they are called once for each element added, and the first call only carries the first element and the rest all. This has given me problems and I have had to add a 'delay="100"' to avoid the problem. It can be seen in the console:

[a]
[a, b, c, d, e, f, g, h]
[a, b, c, d, e, f, g, h]
[a, b, c, d, e, f, g, h]
[a, b, c, d, e, f, g, h]
[a, b, c, d, e, f, g, h]
[a, b, c, d, e, f, g, h]
[a, b, c, d, e, f, g, h]

I have put the latest to test 14.0.0-RC3

Thank you so much!!

primefaces-test-master-chips.zip

@melloware melloware reopened this Apr 19, 2024
@melloware melloware modified the milestones: 13.0.6, 13.0.9 Apr 19, 2024
melloware added a commit to melloware/primefaces that referenced this issue Apr 19, 2024
melloware added a commit to melloware/primefaces that referenced this issue Apr 19, 2024
@melloware
Copy link
Member

PR submitted to fix both issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 defect Bug...Something isn't working
Projects
None yet
2 participants