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

Weird behaviour with {{link-to}} when html within template lacks closing tag #738

Closed
tobias-g opened this issue Feb 14, 2014 · 1 comment

Comments

@tobias-g
Copy link

When using {{link-to}} helper where the html doesn't have a closing tag as the example below the new template that the link to refers to is rendered however the old template also remains.

{{#each}}
  <h1>{{name}}</h1>
  <p>{{description}}</p>
  <p>{{#link-to 'cocktail' this}}more...{{/link-to}}
{{/each}}

The example above has no closing paragraph tag causing this issue. Noticed this and reported in on stack overflow:

http://stackoverflow.com/questions/21765224/link-to-within-each-not-removing-old-template-in-ember

And a jsfiddle of this happening can be found at:

http://jsfiddle.net/tobias_g/Lxebv/

@kpdecker
Copy link
Collaborator

link-to is not part of handlebars proper. I'd raise this issue with the ember team to see what feedback they can provide you.

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

No branches or pull requests

2 participants