I have an icon heart on the nav bar inside a button element but the problem is when I click it, the whole button area gets animated.
Check out the SS.
![https://gyazo.com/89252c30ebe2541c4b42fbafd61521f9](https://i.gyazo.com/89252c30ebe2541c4b42fbafd61521f9.gif)
I want that When i click on it only the heart icon gets clicked not the area around it.
Please help thanks.
Use ion-icon tag only instead of button and add a click event on the ion-icon tag
<Ion-icon (click)="tapevent()" tappable></ion-icon>
1 Like
You can also add the attribute “ion-button”
1 Like
Sorry guys its not working ![:frowning: :frowning:](https://emoji.discourse-cdn.com/twitter/frowning.png?v=5)
1 Like
please help, its not accepting tap event now.
dont flood in forum, please
Create a codepen or plunker. We cannot help you with no code.