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 dropdown closes after selecting one option #602

Closed
nanaaikinson opened this issue Oct 25, 2020 · 10 comments
Closed

Multiselect dropdown closes after selecting one option #602

nanaaikinson opened this issue Oct 25, 2020 · 10 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@nanaaikinson
Copy link

Multiselect closes after an option is selected or even clicking in the filter box. There should be a way to select multiple options without the dropdown closes. Any help?

@technobulka
Copy link

Same problem. It's appears after fix multiselect in the dialog.

@devilwacause
Copy link

Line 167 -> MultiSelect.vue

if (!this.disabled && (!this.overlay || !this.overlay.contains(event.target)) && !DomHandler.hasClass(event.target, 'p-multiselect-close')) {

should be

if (!this.disabled && (!this.$refs.overlay || !this.$refs.overlay.contains(event.target)) && !DomHandler.hasClass(event.target, 'p-multiselect-close')) {

Changing this to pay attention to the reference works as expected.

@devilwacause
Copy link

#632

@nanaaikinson
Copy link
Author

The way I fixed this issue was to downgrade the version i am using.. That is from 2.2.0 to 2.0.1

@cagataycivici
Copy link
Member

This works for me;

https://www.primefaces.org/primevue/showcase/#/multiselect

Which versions does it happen?

@cagataycivici cagataycivici added the Resolution: Cannot Replicate Issue could not be replicated by Core Team label Nov 25, 2020
@technobulka
Copy link

I have this problem on 2.2.0 and 2.2.1.

@nanaaikinson
Copy link
Author

nanaaikinson commented Nov 25, 2020

@cagataycivici version 2.2.1

@rafhaelpc
Copy link

Same problem in 2.2.1

@cagataycivici
Copy link
Member

I was looking at v3 which works, adding v2.2.2 milestone to this.

@cagataycivici cagataycivici added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Resolution: Cannot Replicate Issue could not be replicated by Core Team labels Nov 27, 2020
@cagataycivici cagataycivici added this to the 2.2.2 milestone Nov 27, 2020
@cagataycivici cagataycivici self-assigned this Nov 27, 2020
@cagataycivici
Copy link
Member

Fixed for 2.2.2 which is due later today, thank you.

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

5 participants