We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ad8a1 commit ef97eecCopy full SHA for ef97eec
src/directives/internal/component.js
@@ -42,8 +42,15 @@ module.exports = {
42
// create a ref anchor
43
this.anchor = _.createAnchor('v-component')
44
_.replace(this.el, this.anchor)
45
- // remove is attribute
+ // remove is attribute.
46
+ // this is removed during compilation, but because compilation is
47
+ // cached, when the component is used elsewhere this attribute
48
+ // will remain at link time.
49
this.el.removeAttribute('is')
50
+ // remove ref, same as above
51
+ if (this.descriptor.ref) {
52
+ this.el.removeAttribute('v-ref:' + _.hyphenate(this.descriptor.ref))
53
+ }
54
// if static, build right now.
55
if (this.literal) {
56
this.setComponent(this.expression)
0 commit comments