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 closing if click start inside #1361

Merged
merged 1 commit into from
Jul 27, 2021
Merged

Fix: Prevent overlay closing if click start inside #1361

merged 1 commit into from
Jul 27, 2021

Conversation

Mirko92
Copy link
Contributor

@Mirko92 Mirko92 commented Jul 1, 2021

Defect Fixes

When I try to highlight some text inside the overlay, if the cursor ends its run outside, the panel will be close.
I checked the code, and I found that "selfClick" property is used to avoid that, but I think It's attached to the wrong event.

I changed "click" event with "mousedown".

@cagataycivici cagataycivici self-assigned this Jul 27, 2021
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 27, 2021
@cagataycivici cagataycivici added this to the 3.6.0 milestone Jul 27, 2021
@cagataycivici cagataycivici merged commit b7b4f6e into primefaces:master Jul 27, 2021
@cagataycivici
Copy link
Member

Good catch, thanks!

shadoWalker89 added a commit to shadoWalker89/primevue that referenced this pull request Sep 9, 2021
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
mertsincan pushed a commit that referenced this pull request Sep 14, 2021
…nside (#1527)

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 <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
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 this pull request may close these issues.

2 participants