diff --git a/src/compile/render-dom/wrappers/Slot.ts b/src/compile/render-dom/wrappers/Slot.ts index 3bef69b573..81262fb6d3 100644 --- a/src/compile/render-dom/wrappers/Slot.ts +++ b/src/compile/render-dom/wrappers/Slot.ts @@ -86,7 +86,7 @@ export default class SlotWrapper extends Wrapper { block.builders.mount.addBlock(deindent` ${mountLeadin} { - ${slot}.m(${parentNode || '#target'}, anchor); + ${slot}.m(${parentNode || '#target'}, ${parentNode ? 'null' : 'anchor'}); } `); diff --git a/test/runtime/samples/binding-select-in-yield/_config.js b/test/runtime/samples/binding-select-in-yield/_config.js index 6c206837e1..11dcb3d58c 100644 --- a/test/runtime/samples/binding-select-in-yield/_config.js +++ b/test/runtime/samples/binding-select-in-yield/_config.js @@ -18,7 +18,7 @@ export default { `); - const select = target.querySelector('select'); + let select = target.querySelector('select'); const change = new window.MouseEvent('change'); select.options[2].selected = true; @@ -44,6 +44,8 @@ export default { await component.modal.toggle(); await component.modal.toggle(); + select = target.querySelector('select'); + assert.deepEqual(Array.from(select.options).map(o => o.selected), [ false, false, diff --git a/test/runtime/samples/component-binding-blowback-c/_config.js b/test/runtime/samples/component-binding-blowback-c/_config.js index b179f1c104..5ff0ae34f6 100644 --- a/test/runtime/samples/component-binding-blowback-c/_config.js +++ b/test/runtime/samples/component-binding-blowback-c/_config.js @@ -14,7 +14,7 @@ export default { `, - async test({ assert, component, target, window }) { + async test({ assert, target, window }) { const input = target.querySelector('input'); input.value = 4;