Skip to content

[Bug] Matrix component click event is not triggered even when silent is false #21389

@natsuokawai

Description

@natsuokawai

Version

6.0.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?code=zVWxbtswEN39Fa_oQBtVnaTeZHRo3Y6ZOhRB4eEsnSPCFGmQ56aGoX_viVWMNAk8FEUcbsd7d4_3-CiFrdjg8RGHESAhOLHbEoeugMYtSbS_NMTJpUjgFCwDgJqESvwwn0wB89ksT3f9fyvT60T_Vrh_brBHE91c9SPdfDDLv7lytAr1sz1eaHDg4gJfPa0cw3rhSFV_5UMuWcdeSqzJJS6GTSvcfpO94_Mc-7xr0CDLdk0bhjSMip1DY-W9cJIs5WqPxCLW34JQBRcixhLJpy1FVXTysM0XXtPOCWyC8cGzmuWusVWjD2zDKRNErgRNcC7cgXwNHwSVs9WmJzv2yjwlzAMic39pvdFizXExYN7OZrMnye-2lqbE1bDd3ecHIz_R4KCUWqipywKXywI_ye3UFmbRnw3XbNA9KnqxZ_1qzXNU5Bz03aibn1WBUbtfNBRlGvzYZAur3dc7n786YzUttWmSfzdV8Ck4nrpwO_5jKK7fKHjAzBVCjqMck-o7vBvSU08tK6abzH8D&enc=deflate

Steps to Reproduce

  1. Open the ECharts Official Editor with the Matrix Mini Bar Geo example: https://echarts.apache.org/examples/en/editor.html?c=matrix-mini-bar-geo
  2. Insert the following code at the top of the editor's JavaScript area:
myChart.on('click', function (params) {
    console.log(params);
});
  1. Run the code.
  2. Click on a text cell within the matrix (e.g., the cell displaying a city name like "Valais").

Current Behavior

  • When clicking on a text cell, no log output appears in the browser's console.
  • When clicking on a bar chart, log output related to the series data is correctly displayed in the console.

Expected Behavior

The click event should be triggered.

Environment

- OS: macOS Sequoia
- Browser: Chrome 141.0.7390.108
- Framework: [email protected]

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions