Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ui5 webcomp for react: CardHeader onClick fires without the CardHeader being "interactive"

0 Likes
971

Tutorials: https://developers.sap.com/tutorials/ui5-webcomponents-react-card.html

--------------------------

Hi,
in Step 4 of this tutorial we're using a CardHeader component, which is supposed to only fire an onClick event, if the "interactive" prop is "true". But in my case, I can leave out the interactive prop and the onClick event still fires on click. It follows that if I set interactive to "true", that the onClick event fires twice.

I've tried copying the exact code snippet and it still happens.

Anyone else had this problem? I can post some details of my package.json etc if needed, just didn't find a spoiler tag to reduce clutter in the question.

Tutorials: https://developers.sap.com/tutorials/ui5-webcomponents-react-card.html

--------------------------

Hi,
in Step 4 of this tutorial we're using a CardHeader component, which is supposed to only fire an onClick event, if the "interactive" prop is "true". But in my case, I can leave out the interactive prop and the onClick event still fires on click. It follows that if I set interactive to "true", that the onClick event fires twice.

I've tried copying the exact code snippet and it still happens.

Anyone else had this problem? I can post some details of my package.json etc if needed, just didn't find a spoiler tag to reduce clutter in the question.

1 REPLY 1
Read only

former_member751964
Participant
0 Likes
873

Thank you for asking a question in the SAP Community!

Your question is very important to us. It would be helpful for you to take the tutorial: https://community.sap.com/resources/questions-and-answers which provides tips for preparing questions that draw the best responses from our members. Plus, by organizing your Community profile using this tutorial: https://developers.sap.com/tutorials/community-profile.html you will encourage more readers to respond to your questions!

Thank you!