Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.
This repository was archived by the owner on Jul 28, 2021. It is now read-only.

throw TypeError Error when clicking delete btn(when nothing is selected) #25

Open
@WenhanDo

Description

@WenhanDo

Version

^3.9.0

Test Environment

chrome 83.0.4103.97

Current Behavior

everything works fine but it will throw an error when click delete btn

TypeError: Cannot read property 'type' of undefined
at Graphics.getActiveObjectIdForRemove (VM48076 graphics.js:447)
at ImageEditor.removeActiveObject (VM47973 imageEditor.js:417)
at Object._delete [as delete] (VM48074 action.js:107)
at HTMLLIElement._this3.eventHandler. (VM48044 ui.js:476)

<TuiImageEditor {...props} />
// Write example code

Expected Behavior

no errors (or just get delete btn disabled)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions