Skip to content

Commit fe4dfd0

Browse files
committed
remove el ref attribute when linking
1 parent bdf109f commit fe4dfd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/directive.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,14 @@ Directive.prototype._bind = function () {
7373
removeBindAttr(this.el, name)
7474
} else if (name === 'on') {
7575
this.el.removeAttribute('on-' + this.arg)
76-
} else if (name === 'transition' || name === 'el') {
76+
} else if (name === 'transition') {
7777
if (this.arg) {
7878
removeBindAttr(this.el, name)
7979
} else {
8080
this.el.removeAttribute(name)
8181
}
82+
} else if (name === 'el') {
83+
this.el.removeAttribute('$$.' + this.expression)
8284
}
8385
}
8486
if (typeof def === 'function') {

0 commit comments

Comments
 (0)