Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Event Order in SAPUI5

$
0
0

Hello,

I have a sap.m.CustomTile with a sap.m.Button inside. On Both the tile and the button I have attached onpress event handler.

The problem is that when I click the button, both event handlers are executed in order. I know why this happens, I don't know how to prevent it. What I want is when I click on the button only its event handler to be executed.

I've tried placing: event.preventDefault(); return false; or cancelBubble(); inside the event handler but none of it helped.

 

Best Regards,

Hristo


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>