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

conflict between nzShowSort and nzPopconfirm in tables #8882

Open
zirtoshka opened this issue Nov 16, 2024 · 0 comments
Open

conflict between nzShowSort and nzPopconfirm in tables #8882

zirtoshka opened this issue Nov 16, 2024 · 0 comments
Assignees

Comments

@zirtoshka
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-ivy-o8fpta?file=src%2Findex.html

Steps to reproduce

Create an nz-table with columns that use the nzShowSort directive for sorting.
Add an nz-popconfirm directive to a column for an action like "Delete."
Attempt to sort the table by clicking on the column headers.
Try clicking the "Delete" link to trigger the nz-popconfirm popup.

What is expected?

The nz-popconfirm popup should open when clicking on the "Delete" link.
Sorting the table should not interfere with the popup.

What is actually happening?

The nz-popconfirm popup does not open when clicking on the "Delete" link.
Sorting the table with the nzShowSort directive prevents the popup from appearing.
In some cases, the cursor does not change when hovering over the "Delete" link, indicating that the link is not interactive due to event conflicts.

Environment Info
ng-zorro-antd 18.1.1
Browser safari

The issue seems to be caused by conflicting click event handlers between the sorting functionality (nzShowSort) and the nz-popconfirm directive.
It appears that sorting is intercepting click events, preventing the nz-popconfirm from displaying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants