mirror of https://github.com/sveltejs/svelte
set .value while setting .__value during spread (#4809)
parent
37cc5888f8
commit
40d0ea6702
@ -0,0 +1,15 @@
|
|||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
props: {
|
||||||
|
'data-foo': 'bar'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
html: `<input data-foo="bar" type="radio" value="abc">`,
|
||||||
|
|
||||||
|
async test({ assert, component, target, window }) {
|
||||||
|
const input = target.querySelector('input');
|
||||||
|
assert.equal(input.value, 'abc');
|
||||||
|
assert.equal(input.__value, 'abc');
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
export let props;
|
||||||
|
let radioValue;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<input type="radio" value="abc" {...props} bind:group={radioValue} />
|
Loading…
Reference in new issue