htmlbars icon indicating copy to clipboard operation
htmlbars copied to clipboard

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

Open lolmaus opened this issue 9 years ago • 1 comments

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 avatar Sep 29 '15 13:09 lolmaus

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

lolmaus avatar Sep 29 '15 13:09 lolmaus