Skip to content

IconFont 被点击时会抛出异常 #814

@zhangxiaoshang

Description

@zhangxiaoshang
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.9

Environment

^1.3.9 Chrome Vue 2.6.10

Reproduction link

#785

Steps to reproduce

const IconFont = Icon.createFromIconfontCN({
scriptUrl: "//at.alicdn.com/t/fontxxx.js"
});

Vue.component("IconFont", IconFont);

使用这种方式创建了组件IconFont, 在页面上使用IconFont 渲染一个icon,点击该icon会抛出异常

translator.js:448 Uncaught TypeError: e.target.className.indexOf is not a function
at HTMLDocument.mouseup (translator.js:448)
mouseup @ translator.js:448

What is expected?

点击icon不会抛异常

What is actually happening?

点击icon不会抛异常

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions