mirror of https://github.com/sveltejs/svelte
parent
87b5c2d290
commit
ebb77dab87
@ -0,0 +1,11 @@
|
||||
export default {
|
||||
props: {
|
||||
inert: true
|
||||
},
|
||||
test({ assert, target, component }) {
|
||||
const div = target.querySelector('div');
|
||||
assert.ok(div.inert);
|
||||
component.inert = false;
|
||||
assert.ok(!div.inert);
|
||||
}
|
||||
};
|
||||
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
export let inert;
|
||||
</script>
|
||||
|
||||
<div {inert}>some div <button>click</button></div>
|
||||
Loading…
Reference in new issue