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

Autocomplete with multiple and readonly enabled still show button to remove options #9513

Closed
femarchi opened this issue Nov 11, 2020 · 0 comments
Assignees
Labels
LTS-FIXED-9.2.5 Fixed in PrimeNG LTS 9.2.5 LTS-FIXED-10.1.0 Fixed in PrimeNG LTS 10.1.0 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@femarchi
Copy link

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
https://stackblitz.com/edit/primeng-autocomplete-readonly-bug

Current behavior
Autocomplete with multiple and readonly enabled still shows buttons to remove selection.

Expected behavior
When multiple and readonly are enabled, there should be a way to block the removal of items from the list without disabling the field.

Minimal reproduction of the problem with instructions
Add some values to a multiple selection p-autocomplete field, then set readonly to true.

What is the motivation / use case for changing the behavior?
There is the possibility of wanting to use the field only to show selected options, but still make it editable under certain conditions.

  • PrimeNG version: 10.0.3
@yigitfindikli yigitfindikli self-assigned this Nov 25, 2020
@yigitfindikli yigitfindikli added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Nov 25, 2020
@yigitfindikli yigitfindikli added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Mar 11, 2021
@yigitfindikli yigitfindikli added this to the 11.3.1 milestone Mar 11, 2021
@yigitfindikli yigitfindikli added LTS-FIXED-10.1.0 Fixed in PrimeNG LTS 10.1.0 LTS-FIXED-9.2.5 Fixed in PrimeNG LTS 9.2.5 and removed LTS-PORTABLE labels Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-FIXED-9.2.5 Fixed in PrimeNG LTS 9.2.5 LTS-FIXED-10.1.0 Fixed in PrimeNG LTS 10.1.0 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants