diff --git a/src/compile/render-dom/wrappers/Element/index.ts b/src/compile/render-dom/wrappers/Element/index.ts index 432eb20909..d289b84c4c 100644 --- a/src/compile/render-dom/wrappers/Element/index.ts +++ b/src/compile/render-dom/wrappers/Element/index.ts @@ -446,7 +446,7 @@ export default class ElementWrapper extends Wrapper { group.bindings.forEach(binding => { addToSet(dependencies, binding.dependencies); - addToSet(contextual_dependencies, binding.handler.contextual_dependencies); + addToSet(contextual_dependencies, binding.contextual_dependencies); if (!binding.updateDom) return; diff --git a/test/runtime/samples/globals-not-overwritten-by-bindings/_config.js b/test/runtime/samples/globals-not-overwritten-by-bindings/_config.js index 52895d7c0b..35f4037bec 100644 --- a/test/runtime/samples/globals-not-overwritten-by-bindings/_config.js +++ b/test/runtime/samples/globals-not-overwritten-by-bindings/_config.js @@ -50,12 +50,12 @@ export default { }, }, - test(assert, component, target, window) { + async test(assert, component, target, window) { const input = document.querySelectorAll('input[type="checkbox"]')[2]; const change = new window.Event('change'); input.checked = true; - input.dispatchEvent(change); + await input.dispatchEvent(change); assert.ok(component.todos.third.done); assert.htmlEqual(target.innerHTML, `