diff --git a/packages/runtime-dom/__tests__/patchEvents.spec.ts b/packages/runtime-dom/__tests__/patchEvents.spec.ts index 32466f29a7b..fa15419e59d 100644 --- a/packages/runtime-dom/__tests__/patchEvents.spec.ts +++ b/packages/runtime-dom/__tests__/patchEvents.spec.ts @@ -160,6 +160,9 @@ describe(`runtime-dom: events patching`, () => { childFn() patchProp(el, 'onClick', null, parentFn) }) + + // avoid dispatchEvent and bindEvent in the same loop + await timeout() child.dispatchEvent(new Event('click', { bubbles: true })) await timeout()