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

When Multiselect inside of label tag, click on it is not showing dropdown panel #2299

Closed
vytya opened this issue Sep 16, 2021 · 0 comments
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@vytya
Copy link

vytya commented Sep 16, 2021

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

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)
https://codesandbox.io/s/youthful-pike-v13hq

Current behavior
When user clicks on text inside of label tag, Multiselect dropdown is working, but when clicks on field - dropdown isn't showing. On some time in DOM appears a dropdown panel, but immediately hides.

Expected behavior
Click on any part of input group (Multiselect + label text) should show dropdown panel.

Minimal reproduction of the problem with instructions
Wrap Multiselect in <label></label>.
Dropdown component are working well with this label wrapping, but not Multiselect.
Also, as workaround could be setting for label tag htmlFor='', but in that case text of a label become not clickable and not focusing input.

  • Please tell us about your environment:
    Win10, IntellijIdea

  • React version:
    17.0.1

  • PrimeReact version:
    6.5.1

  • Browser:
    Last Chrome, FF

  • Language:
    N/A

@mertsincan mertsincan self-assigned this Nov 6, 2021
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Nov 6, 2021
@mertsincan mertsincan added this to the 7.0.0.Final milestone Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants