sproutcore/sproutcore20 — Issue #182: After switch to metamorph.js buttons don't work anymore
Author: stefri
Created: 2011-10-17 06:43:43+00:00
State: open

In my application I use the current master. Now, after the metamorph changes were included in master, my buttons which are inside a handlebars "if" don't fire anymore. All other buttons (those not inside an "if") are working find. Basically, my handlebars template looks as follows

{{view templateName"path-to-header"}}
...
{{#view contentBinding="App.myController.content"}}
{{#if content.myObject.myRecord.isLoaded}}
{{#view SC.Button target="App.navigationController" action"foobar"}}
My Button
{{/view}}
{{/if}}
{{/view}}
...

This still does work with commit SHA: d7b29372f128b22d8a962dfa48c96499154e2160, so I guess it has to do with the metamorph changes. However, I don't know if this is a bug or intended behavior.