dimanche 23 avril 2017

tabs dynamic component waiting before switching to next tab

I'm using the custom tabs config but seem to have a problem loading dynamic content (components within tab panes).

The component loads promise/s or does some processing on init, and when switching to a new tab it will not switch immediately but wait until the component finishes initialization.

ie:



    
        <a href="#edit" role="tab" >Edit</a>

     

    
       
          <h2>TEST</h2>//->this does not show until some-component finishes initialization

          //->does some processing, promises or whatever on init
      
    



I tried manually setting and keeping track of the activeId by hooking into the onChange event but have the same effect.




Aucun commentaire:

Enregistrer un commentaire