title: Changing the Style Dynamically on ExtJS 6
body: <p>So, I have my component (which might be a combobox, textfield etc), what I want it's to change its style (put his borders blue) when I trigger an event.</p>
  
  <p>So this is my event:</p>
  
  <pre><code>//input is the component itself
  changeComponents:function (input) {
          ...
  
     input.border = me.border;
     input.style = me.style;
     input.updateLayout();
  
         ...
  }
  </code></pre>
  
  <p>For some reason, when I trigger that function the layout won't update.</p>
  
  <p>I used that exact code on:</p>
  
  <pre><code>input.on('afterrender', function(){
          ...
     input.border = me.border;
     input.style = me.style;
  
         ...
  }
  </code></pre>
  
  <p>And it works, so I would like to know what is happening and why it doesn't work.</p>