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

fixes #14962 - ContextMenu | onHide, onShow event is not being triggered when you right click twice continuously #14964

Merged
merged 5 commits into from
Mar 19, 2024

Conversation

ymg2006
Copy link
Contributor

@ymg2006 ymg2006 commented Mar 7, 2024

context menu onshow event should not be inside onOverlayAnimationStart since it is not being fired when context menu is clicked twice simultaneousl

Defect Fixes

When submitting a PR, please also create an issue documenting the error and manually link to an issue or mention it in the description using #<issue_id>.

Feature Requests

Due to company policy, we are unable to accept feature request PRs with significant changes as such cases has to be implemented by our team following our own processes.
Smaller scaled feature implementations such as adding a property to a component will be considered for merging.

context menu onshow event should not be inside onOverlayAnimationStart since it is not being fired when context menu is clicked twice simultaneousl
Copy link

vercel bot commented Mar 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Mar 11, 2024 10:39am

@ymg2006 ymg2006 changed the title fixes #14962 fixes #14962 p-contextMenu | onHide, onShow event is not being triggered when you right click twice continuously Mar 7, 2024
@ymg2006 ymg2006 changed the title fixes #14962 p-contextMenu | onHide, onShow event is not being triggered when you right click twice continuously fixes #14962 - contextMenu | onHide, onShow event is not being triggered when you right click twice continuously Mar 7, 2024
@ymg2006 ymg2006 changed the title fixes #14962 - contextMenu | onHide, onShow event is not being triggered when you right click twice continuously fixes #14962 - ContextMenu | onHide, onShow event is not being triggered when you right click twice continuously Mar 7, 2024
…ing triggered when you right click twice continuously

the event should be called before calculations of position. the previous commit made some view bugs when items before onShow was modified
@cetincakiroglu
Copy link
Contributor

Hi @ymg2006,

Thanks for the effort and support!

Could you please link the related issue with the PR and tag me afterward so I can include it in the milestone and merge your PR? Also could you please put onHide and onShow emitters after the visible signal value changed at the bottom of both methods?

@cetincakiroglu cetincakiroglu added Status: Pending Review Issue or pull request is being reviewed by Core Team Resolution: Needs Revision The pull request can't be merged. Conflicts need to be corrected or documentation and code updated. Resolution: Needs Issue An issue needs to be created for the pull request labels Mar 7, 2024
moved onHide event emitter after visible set,
the onShow is not moved because when we dynamically want to change context menu items it gets in the correct position, so I put it before this.position() and visible set true method.
@ymg2006
Copy link
Contributor Author

ymg2006 commented Mar 7, 2024

@cetincakiroglu the issue link is: #14964.
The onHide event call is moved after this.visible.set(false) method as per request, but the onShow is not moved because when we dynamically want to change context menu items, it gets incorrect position, this.position() is not being called so I put it before this.position() and this.visible.set(true) methods.

@cetincakiroglu cetincakiroglu added this to the 17.11.0 milestone Mar 8, 2024
@cetincakiroglu
Copy link
Contributor

@ymg2006

The issue link is not correct it's your PR link. Please link the PR with an active issue if it exists or open a new issue describing the malfunction and link the PR.

@cetincakiroglu cetincakiroglu modified the milestones: 17.11.0, 17.12.0 Mar 13, 2024
@ymg2006
Copy link
Contributor Author

ymg2006 commented Mar 13, 2024

@cetincakiroglu
new issue created, this commit closes issues: #15032, #14962

@cetincakiroglu cetincakiroglu removed this from the 17.12.0 milestone Mar 19, 2024
@cetincakiroglu
Copy link
Contributor

Hi,

Thanks for the effort and support!

@cetincakiroglu cetincakiroglu merged commit 38dd93a into primefaces:master Mar 19, 2024
1 check passed
@cetincakiroglu cetincakiroglu removed Status: Pending Review Issue or pull request is being reviewed by Core Team Resolution: Needs Revision The pull request can't be merged. Conflicts need to be corrected or documentation and code updated. Resolution: Needs Issue An issue needs to be created for the pull request labels Mar 19, 2024
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.

None yet

3 participants