Two click interactions at the same time

I’m trying to create a snackbar notification that appears when I add an item to my wishlist, and I also want a heart icon to fill in when this action occurs. However, I’m having trouble getting both the filled heart icon and the snackbar notification to show up simultaneously when I click the heart. How can I achieve this?

Captura de tela 2024-08-20 114024