Skip to content

Commit a75b00c

Browse files
committed
wip: treat compat model listener as already declared
1 parent 5566d39 commit a75b00c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/runtime-core/src/componentEmits.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ export function isEmitListener(
219219
if (!options || !isOn(key)) {
220220
return false
221221
}
222+
223+
if (__COMPAT__ && key.startsWith(compatModelEventPrefix)) {
224+
return true
225+
}
226+
222227
key = key.slice(2).replace(/Once$/, '')
223228
return (
224229
hasOwn(options, key[0].toLowerCase() + key.slice(1)) ||

0 commit comments

Comments
 (0)