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

[Fix] Prevent overlay from closing when clicking on a label inside #1527

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

shadoWalker89
Copy link
Contributor

@shadoWalker89 shadoWalker89 commented Sep 9, 2021

Hi,
On this PR #1361 the event used for checking if the click is inside the overlay was changed from @click to @mousedown
This caused the overlay to hide when clicking on a tag within the overlay

In this PR, i'm adding a listener for the click event that calls onContentClick function

I tested this change locally and now both clicking on a label or trying to select text work both fine

###Defect Fixes
Fixes #1528
Re production of the bug https://codesandbox.io/s/wonderful-agnesi-020nn

Hi,
On this PR primefaces#1361 the event used for checking if the click is inside the overlay was changed from @click to @mousedown
This caused the overlay to hide when clicking on a <label> tag within the overlay

In this PR, i'm adding a listener for the click event that calls onContentClick function

I tested this change locally and now both clicking on a label or trying to select text work both fine
@shadoWalker89
Copy link
Contributor Author

Fixes #1528

@mertsincan mertsincan merged commit 121054c into primefaces:master Sep 14, 2021
@mertsincan
Copy link
Member

Thanks a lot for your contribution!

Best Regards,

@shadoWalker89 shadoWalker89 deleted the patch-2 branch September 17, 2021 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overlay panel hide when clicking on a label inside of it
2 participants