tildeio / htmlbars

A variant of Handlebars that emits DOM and allows you to write helpers that manipulate live DOM nodes
MIT License
1.61k stars 193 forks source link

Ember 2.1: `<a href={{condition}}>` results in `<a href="null">` after `condition` was dynamically set to null #418

Open lolmaus opened 8 years ago

lolmaus commented 8 years ago

Crossposting from https://github.com/emberjs/ember.js/issues/12358


So you've got this in your template:

<a href={{condition}}>

condition is null, and it correctly renders to <a>.

But then you change condition dynamically.

When condition is null again, it renders as <a href="null">.

Demo (thx to @alexspeller): http://ember-twiddle.com/a0a8088d67b451817902

lolmaus commented 8 years ago

Please confirm that this issue belongs here so that I can close the other one.