Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when clearing attribute morphs. #11030

Closed
rwjblue opened this issue May 5, 2015 · 1 comment · Fixed by #11031
Closed

Error when clearing attribute morphs. #11030

rwjblue opened this issue May 5, 2015 · 1 comment · Fixed by #11031
Assignees
Labels
Milestone

Comments

@rwjblue
Copy link
Member

rwjblue commented May 5, 2015

Rendering an block helper with bound attributes in the template/inverse result in an error when the template/inverse is removed.

Sample template snippet:

    {{input type="checkbox" checked=checked}}

    {{#if checked}}
      <a href={{"http://google.com"}}>google.com</a>
    {{else}}
      <a href={{"http://yahoo.com"}}>yahoo.com</a>
    {{/if}}

Demo: http://emberjs.jsbin.com/rwjblue/430/edit?html,js,output

@rwjblue
Copy link
Member Author

rwjblue commented May 5, 2015

tildeio/htmlbars#336 adds the required methods to HTMLBar's AttrMorph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant