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

[1.13-beta.1] rerendering component after changing layout fails. #11186

Closed
masda70 opened this issue May 16, 2015 · 3 comments
Closed

[1.13-beta.1] rerendering component after changing layout fails. #11186

masda70 opened this issue May 16, 2015 · 3 comments
Labels
Milestone

Comments

@masda70
Copy link

masda70 commented May 16, 2015

I have the following component definition (details omitted):

import Ember from 'ember';

var processRaw = function(raw){
   [...]
  return someTemplateContent;
};

var Component = Ember.Component.extend({
  raw: '',

  updateLayout: function() {
    var raw = processRaw(this.get('raw') || '');

    var layout =  Ember.HTMLBars.compile(raw);

    this.set('layout', layout);
    this.rerender();
  },

  observeRaw: function() {
    Ember.run.debounce(this, this.updateLayout, 250);
  }.observes("raw")
});

export default Component;

The component dynamically changes its layout based on the value of its raw attribute.

It works as expected with Ember 1.12.0. With Ember 1.13-beta.1, the updateLayout method executes fine (no error is thrown), but the component renders nothing. Am I doing some wrong?

@rwjblue rwjblue added the Bug label May 16, 2015
@rwjblue rwjblue added this to the 1.13.0 milestone May 16, 2015
@rwjblue
Copy link
Member

rwjblue commented May 20, 2015

Demo JSBin: http://emberjs.jsbin.com/rwjblue/530/edit

@cascalheira
Copy link

+1: Same problem here

@rwjblue
Copy link
Member

rwjblue commented Aug 26, 2015

Tracking in the failing test PR: #11315

@rwjblue rwjblue closed this as completed Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants