Skip to content

[Table]: onRowClick is also fired when onActionRowClick is clicked #7481

Open
@vigrase

Description

@vigrase

Describe the bug

Using the Table component when onRowClick and onActionRowClick are added and the actions are collapsed to appear in a dropdown menu, clicking an action will also fire the row click.

This does not happen if the actions are not collapsed and in that case works as expected.

Isolated Example

https://stackblitz.com/edit/ui5wcr-table-features-wkx5f4jf?file=src%2FApp.tsx

Reproduction steps

Step 1, open actions menu
Image

Step 2, click on any action:
Image

row click and action click are fired
Image

Expected Behaviour

When an action is clicked only the onActionRowClick will be fired even if is from actions collapsed and show as dropdown menu.

Screenshots or Videos

No response

UI5 Web Components for React Version

Latest

UI5 Web Components Version

Latest

Browser

Chrome

Operating System

Any

Additional Context

We for example need to use onRowClick for navigation pruposes to the specified item, meanwhile actions can have others as delete, copy, etc. So is unexpected that the page is navigating when a delete action that should show the confirmation dialog (with others is the same)

Even using all the prevent possibilities in event from onRowActionClick has no effect and row is fired.

Relevant log output

Organization

SAP Signavio

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions