Skip to content

I found a bug here #791

Closed
Closed
@pucelle

Description

@pucelle

Hi, 尤小右, I created a big project using you vue.js, Thanks to your work.

and I may found a bug here:
When compiling a component, it has a _containerUnlinkFn used to unbind all the derectives, and when it create a inherited child, the child inherits it's _containerUnlinkFn method, but when destroy this child, it called this container unlink fn, and unbind the directives which belongs to the component.

I tried to add a line of code here:
el = transclude(el, options)
this._initElement(el)
this._containerUnlinkFn = undefined //I inserted this line, and it works now.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions