Skip to content

[Bug] The timeline drag becomes invalid after checkpoint is clicked #17643

@Liang-Ben

Description

@Liang-Ben

Version

5.3.3

Link to Minimal Reproduction

No response

Steps to Reproduce

option = {
    timeline: {
        data: ['9月1日', '9月2日', '9月3日'],
        axisType: 'category',
        show: true,
        autoPlay: true,
        playInterval: 1000,
        lineStyle: {
            show: false
        }
    },
    options: [{
        tooltip: {
            'trigger': 'axis'
        },
        calculable: true,
        xAxis: [{
            'type': 'category',
            'axisLabel': {
                'interval': 0
            },
            'data': [
                '1', ' 2', '3', '4', '5', '6', '7', '8'
            ]
        }],
        yAxis: [{
        }, {
            'type': 'value',
        }],
        series: [{
            'yAxisIndex': 1,
            'type': 'bar',
            'data': [5, 6, 8, 28, 8, 24, 11, 16],
        }]
    }, {
        title: {
            'text': '9月2日'
        },
        series: [{
            'data': [45, 43, 64, 134, 188, 43, 109, 12]
        }]
    }, {
        title: {
            'text': '9月3日'
        },
        series: [{
            'data': [110, 32, 111, 176, 73, 59, 181, 9]
        }]
    }]
};

Current Behavior

Set the show property of linestyle to Timeline. show = false. After you click checkpoint, drag and release the pointer. Error: Cannot read properties of undefined (reading 'shape'), after which the timeline component fails to select any location.

This bug is not present in versions 4.9.0 and earlier, and is present in versions 5.0.0alpha.1 through 5.3.3.

Expected Behavior

Click Checkpoint and drag,the timeline works normally

Environment

- OS:windows11
- Browser:Chrome103.0.5060.134
- Framework:Vue@3

Any additional comments?

This bug is not present in versions 4.9.0 and earlier, and is present in versions 5.0.0alpha.1 through 5.3.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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