Closed
Description
👋 Edd
I was writing some specs on a component that uses the inheritAttrs
option. While looking at that I noticed that none of the extra props I was passing to components were not being added as attributes on the component.
I dug a little deeper in the source and it appears the issue is that this occurs before the $mount function.
Please let me know what you think, have an example and some links below. Thanks!
// Example
<template>
<button
@click.prevent='handleClick'
>
<slot></slot>
</button>
</template>
// Usage
<button-component :foo="bar">My Text</button-component>
// Vue would render
<button foo="bar">My Text</button>
// With `mount` from vue-test-utils
<button>My Text</button>
Reference in Vue.js https://vuejs.org/v2/guide/components.html#Non-Prop-Attributes
I saw this on avoriaz eddyerburgh/avoriaz#87