Skip to content

Commit cffef39

Browse files
committed
fix: icon support native event
1 parent d63935e commit cffef39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/icon/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ const Icon = {
123123
/>
124124
)
125125
}
126+
// functional component not support nativeOn,https://github.com/vuejs/vue/issues/7526
126127
const iProps = {
127-
...data, on: listeners, class: classString, staticClass: '',
128+
...data, on: { ...listeners, ...data.nativeOn }, class: classString, staticClass: '',
128129
}
129130
return (
130131
<i {...iProps}>

0 commit comments

Comments
 (0)