Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material-ui 水滴涟漪效果和 Fastclick冲突、 #2291

Closed
shangdev opened this issue Apr 19, 2019 · 3 comments
Closed

Material-ui 水滴涟漪效果和 Fastclick冲突、 #2291

shangdev opened this issue Apr 19, 2019 · 3 comments

Comments

@shangdev
Copy link

shangdev commented Apr 19, 2019

What happens?

项目用到了Material-ui,经测试发现点击按钮之后水滴涟漪效果不会恢复,如果多次点击,会叠加颜色。

效果和下面这个图差不多:

image

image

同时控制台出现了fastclick的错误信息:

image

这是Material-ui issue 下的讨论:mui/material-ui#7537

所以我想确认是不是fastclick引起的该BUG,如果直接在umi-build-dev依赖包中移除fastclick,那么umi dev后会报错,可能其中有一些代码用到了这个包,如何测试这个BUG,或者如何移除fastclick 呢?

Context

  • Umi Version: ^1.3.18
  • Node Version: 10.15.3
  • Platform: IOS 和 安卓(移动设备)都存在该问题
@boxcc
Copy link
Contributor

boxcc commented Apr 19, 2019

https://umijs.org/zh/plugin/umi-plugin-react.html#fastclick

在 umi-plugin-react 的配置里设置

fastclick: false

@shangdev
Copy link
Author

shangdev commented Apr 19, 2019

@boxcc

我没有安装umi-plugin-react(umi版本是1.3的,不是2),这个配置得先安装umi-plugin-react包吧、

@boxcc
Copy link
Contributor

boxcc commented Apr 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants