+ Start a Discussion
ssgmailssgmail 

ui:message component is not capturing "click" event

I am noticing that "click" event is not captured in the ui:message component.

My component:
<aura:component access="global">
 <ui:outputText value="simple text" click="{!c.onClick}"/>
 <ui:message title="Confirmation" severity="confirm" closable="true" click="{!c.onClick}">
   This is a confirmation message.
 </ui:message>
</aura:component>

My JS Controller:
({
    onClick: function(cmp) {
        alert("Clicked");
    }
})

Note that when I click on ui:outputText I do get the alert popup. But clicking on the ui:message does not give me the alert. 
According the lightning developer document, the ui:message is supposed to support click event.
Thank you for the help!
Veenesh VikramVeenesh Vikram
Yes, I guess this is the issue with Lightening ui:message.
It does not handle any of the events liks click or double click.
I recommend u develop your custom component for showing the messages and create custom lightening event to handle click event.

Best Regards
Veenesh
ssgmailssgmail
Thank you! As the document says these events are generated, we should be able to report this as a bug. I will open a case with SFDC.
sridharbsridharb

SSgmail,
WOuld you mind share please if you have got ay help from the salesforce in regards to this issue.
Thanks
Sridhar