Skip to content

[Bug] Update from 5 to 6 causes trigger multiple toolbox datazoom #21661

Description

@alinscodes

Version

6.1.0

Link to Minimal Reproduction

https://jsfiddle.net/am6xs7bv/

Steps to Reproduce

  1. It enabled datazoom toolbox multiple times. Echarts 5 wouldn't have this issue.
    chart.dispatchAction({
    type: 'takeGlobalCursor',
    key: 'dataZoomSelect',
    dataZoomSelectActive: true,
    });

Current Behavior

Click "Enable drag zoom".
Zoom to half of chart.
Click "Restore" button that is part of echarts.
Click "Enable drag zoom".
Zoom to half of chart. Weird wrong zoom.

Expected Behavior

Should zoom correctly second time.

Environment

- OS:
- Browser:
- Framework:

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions