Skip to content

Commit 205f2b1

Browse files
authored
fix: NO-JIRA improve extractVueListeners (#646)
1 parent 91fa11e commit 205f2b1

File tree

1 file changed

+1
-1
lines changed
  • packages/dialtone-vue3/common/utils

1 file changed

+1
-1
lines changed

packages/dialtone-vue3/common/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export const pascalCaseToKebabCase = (string) => {
198198

199199
export const extractVueListeners = (attrs) => {
200200
const listeners = Object.entries(attrs)
201-
.filter(([key]) => key.startsWith('on'));
201+
.filter(([key]) => key.match(/on[A-Z]/));
202202
return Object.fromEntries(listeners);
203203
};
204204

0 commit comments

Comments
 (0)