禁用元素上的波纹效果 [英] Disable ripple effect on element

查看:61
本文介绍了禁用元素上的波纹效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想禁用ion-chip元素上的波纹效果,该元素会在点击时触发:

I'd like to disable the ripple effect on an ion-chip element, which fires on click:

<ion-chip>
   <ion-label>Hey</ion-label>
</ion-chip>

我该如何实现?

推荐答案

<ion-chip style="pointer-events: none;" >

将禁用组件中的样式单击事件. 假设您想要单击事件,则可以在其周围放置一个div.

that will disable the styling click event in the component. Assuming you want a click event you could put a div around it.

这篇关于禁用元素上的波纹效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆