Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

element's controller is lost through arg/params usage with substitution #1149

Open
mczepiel opened this Issue · 2 comments

3 participants

Mike Czepiel António Afonso Kris Kowal
Mike Czepiel
Owner

MyView template:

<div data-montage-id="contentSubstitution">
    <div data-param="*"></div>
</div>

MyView JS

prepareForDraw: {
    value: function () {
        this.templateObjects.contentSubstitution.switchComponents = this._domArguments;
    }
}

Owner Template using MyView

<div data-montage-id="myView">
    <div data-montage-id="foo" data-arg="foo">Foo Placeholder</div>
    <div data-montage-id="bar" data-arg="bar">Bar Placeholder</div>
</div>

Where foo and bar are previously declared components with templates.

When the owner's template is rendered, switching the content of the substitution inside myView works, but the element that renders is from the Owner's template and has no controller associated with it.

I would expect the element to be associated with the declared component and decorated as such from the related template of either foo or bar.

António Afonso
Owner

I wasn't able to replicate this, I fixed a bunch of bugs today, maybe it was solved in one of those?

Mike Czepiel mczepiel self-assigned this
Kris Kowal
Owner

Assigned to @mczepiel for verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.