primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Fix p-autoComplete: selected item template is not displayed

Open Tuxio opened this issue 1 year ago • 4 comments

Defect Fixes

Fixes #2242 #12983

Tuxio avatar Jul 01 '23 23:07 Tuxio

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
primeng-ssr-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2023 9:01am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Jul 2, 2023 9:01am

vercel[bot] avatar Jul 01 '23 23:07 vercel[bot]

@cetincakiroglu Could you please check this PR?

Best Regards,

mertsincan avatar Aug 26 '23 23:08 mertsincan

Any update on this?

pjlasl avatar Jan 30 '24 21:01 pjlasl

up

LiolluryZ avatar Feb 15 '24 14:02 LiolluryZ

Hi @Tuxio ,

Thank you for taking the time to submit your pull request. We genuinely appreciate your effort and interest in improving our project.

After careful review and consideration, we have decided not to merge your pull request at this time. Please understand that this decision does not reflect negatively on the quality of your work. We value every contribution and understand the effort you've put into it.

However, upon review, we believe that the changes proposed in this pull request may not align with the current goals or direction of the project. Our team is continuously evaluating and prioritizing features and enhancements based on various factors, including project roadmap, user feedback, and technical considerations. selectedItem template support will be implemented for singular input mode also in the future.

We encourage you to continue contributing to the project and to stay engaged with our community. Your input and contributions are valuable, and we look forward to seeing more of your work in the future.

Once again, thank you for your contribution, and please don't hesitate to reach out if you have any questions or would like further feedback.

Best regards,

cetincakiroglu avatar Mar 22 '24 15:03 cetincakiroglu

@cetincakiroglu the selectedItem Template doesnt work since several major versions. Here someone does the work and fixes it and it is ignored.

uebelmar avatar Mar 27 '24 19:03 uebelmar

@uebelmar,

selectedItem template is only supported for multiple mode. It's not broken feature, it's not supported in single mode. We've closed the PR because:

1-) Styling becomes broken, and unnecessary outline can bee seen w/keyboard. 2-) Styles should be applied in primeng-sass-theme not in component CSS. Padding and margin values change depending on the applied theme. In this way, they will always be the same. 3-) We can't apply min-width to the styles. 4-) Dom structure changes and it's a breaking change. 5-) Also even the example doesn't work correctly. See the image, you can also see that weird size difference in second image. 6-) It breaks accessibility, the overlay shouldn't open by down arrow, also the overlay cannot be opened by search in the example which is default behavior. 7-) In the third image, you can enter input simultaneously while the selection is also rendered, which is the default behavior of multiple mode, it doesn't function correctly. If it's the use case, same thing can be applied achieved by restricting input count by 1 using multiple. The result will be the same.

So it's not ignored, it's reviewed and closed. We can't merge a feature that doesn't function correctly.

Screenshot 2024-03-28 at 09 21 25 Screenshot 2024-03-28 at 09 22 08 Screenshot 2024-03-28 at 09 25 53

cetincakiroglu avatar Mar 28 '24 06:03 cetincakiroglu

@cetincakiroglu

Thank you for taking the time to explain. That of course makes sense. I also saw in another issue that you have support for selectedItem in single mode on the feature list.

Another thing to think about is that the documentation for the selectedItem template mentions that it is only supported in single mode. In the last few years there have been a few Github issues and StackOverflow articles that have come across this.

uebelmar avatar Mar 28 '24 07:03 uebelmar

@cetincakiroglu

Thank you for taking the time to explain. That of course makes sense. I also saw in another issue that you have support for selectedItem in single mode on the feature list.

Another thing to think about is that the documentation for the selectedItem template mentions that it is only supported in single mode. In the last few years there have been a few Github issues and StackOverflow articles that have come across this.

Yes we'll update the docs to indicate that it's not supported in multiple mode

cetincakiroglu avatar Mar 28 '24 07:03 cetincakiroglu