pull/11419/head
Hunter Johnston 2 years ago
parent 0f4f3d7df0
commit 95b42c45eb

@ -0,0 +1,16 @@
import { test } from '../../test';
export default test({
get props() {
return { item: { name: 'Dominic' } };
},
async test({ assert, target, logs }) {
const [s1] = target.querySelectorAll('span');
s1?.click();
await Promise.resolve();
assert.deepEqual(logs, [false]);
}
});

@ -0,0 +1,13 @@
<script>
function onclick(e) {
// should log false when we click the span
console.log(e.currentTarget === e.target)
}
</script>
<button {onclick}>
<span>
Click me
</span>
</button>
Loading…
Cancel
Save