Skip to content

Commit

Permalink
fix: icon support native event
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Dec 19, 2018
1 parent d63935e commit cffef39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/icon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ const Icon = {
/>
)
}
// functional component not support nativeOn,https://github.com/vuejs/vue/issues/7526
const iProps = {
...data, on: listeners, class: classString, staticClass: '',
...data, on: { ...listeners, ...data.nativeOn }, class: classString, staticClass: '',
}
return (
<i {...iProps}>
Expand Down

0 comments on commit cffef39

Please sign in to comment.