You need to sign in to do that
Don't have an account?
AK-2
afterRender event causes an error
I am trying to use the afterRender event in a custom component (below is the component markup, js handler and the error I am seeing). I have taken out all the code in the handler but I still can't get around the error. I also don't know what parameter I should be setting for value in the component markup for the handler. The documentation around afterRender is pretty sparse so wanted to see if someone in the group could help. If I remove the afterRender handler, the component shows without error.
Thank you.
<!-- COMPONENT MARKUP -->
<aura:handler name="afterRender" action="{!c.afterRender}" value="{!this}"/>
//js controller afterRender
afterRender: function (component, helper) {
this.superAfterRender();
}
----- ERROR MESSAGE -----
Uncaught Error in $A.getCallback() [Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details.
Action failed: forceChatter:lightningComponent$controller$doInit [Cannot read property 'b' of undefined]]
Thank you.
<!-- COMPONENT MARKUP -->
<aura:handler name="afterRender" action="{!c.afterRender}" value="{!this}"/>
//js controller afterRender
afterRender: function (component, helper) {
this.superAfterRender();
}
----- ERROR MESSAGE -----
Uncaught Error in $A.getCallback() [Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details.
Action failed: forceChatter:lightningComponent$controller$doInit [Cannot read property 'b' of undefined]]
Application (for testing purposes) Component Controller (client-side) Helper (not used, only posted for sake of transparency) Renderer Test Example Screenshot
This took a lot of experimentation, so I hope it helps someone else out there.