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: clicking directly on the svg icon closes the overlay #14335

Closed
angelo-v opened this issue Dec 12, 2023 · 1 comment · Fixed by #14353
Closed

multiselect: clicking directly on the svg icon closes the overlay #14335

angelo-v opened this issue Dec 12, 2023 · 1 comment · Fixed by #14353
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@angelo-v
Copy link

angelo-v commented Dec 12, 2023

Describe the bug

When clicking directly on the checkmark svg icon of a selected element, the overlay closes, but it should stay open.

The svg is hard to hit manually in with the default theme, but in our theme it is very likely to click and anyoing that the overlay then closes.

Environment

Angular web application

Reproducer

No response

Angular version

16

PrimeNG version

>14

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18

Browser(s)

Chrome

Steps to reproduce the behavior

To reproduce visit https://primeng.org/multiselect open one of the examples selects and check an element, then execute in the dev console:

document.querySelectorAll('.p-checkbox-icon')[0].dispatchEvent(new Event('click', {bubbles: true}))

Expected behavior

The overlay stays open

@angelo-v angelo-v added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 12, 2023
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 13, 2023
@cetincakiroglu cetincakiroglu added this to the 17.1.0 milestone Dec 13, 2023
cetincakiroglu added a commit that referenced this issue Dec 13, 2023
Fixed #14335 - Multiselect | clicking directly on the svg icon closes…
@thecooper
Copy link

Is there any way I could get this added to version 16?

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

Successfully merging a pull request may close this issue.

4 participants