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

Multiselect doesn't disable options if selectionLimit reached by default value #7187

Closed
FrEaKmAn opened this issue Jan 30, 2019 · 0 comments
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@FrEaKmAn
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)
Please demonstrate your case at stackblitz by using the issue template below. Issues without a test case have much less possibility to be reviewd in detail and assisted.

https://stackblitz.com/edit/ngprime-multiselect-qvvtfu?file=src/app/app.component.ts

Current behavior

I have 2 values already passed as default value with selectionLimit to 2. Once I open dropdown, other options are still enabled. Once I click on one of them, it closes the dropdown, disables options and doesn't select any value.

Expected behavior

I would expect that when I open dropdown, options should already be disabled.

Minimal reproduction of the problem with instructions

Follow stackblitz test link and open dropdown. You will see other options as selectable.

  • Angular version: 7.X
  • PrimeNG version: 7.X
  • Browser: all
  • Language: all

  • Node (for AoT issues): node --version =

@cagataycivici cagataycivici added this to the 8.0.3 milestone Jul 23, 2019
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 23, 2019
@cagataycivici cagataycivici modified the milestones: 8.0.3, 8.0.2 Jul 24, 2019
cagataycivici added a commit that referenced this issue Jul 24, 2019
fixed #7187 Multiselect doesn't disable options if selectionLimit rea…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants