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

点击button按钮,然后隐藏button,再显示button,会把上次激活状态显示一遍 #12967

Closed
lixuguang1988 opened this Issue Nov 6, 2018 · 1 comment

Comments

Projects
None yet
4 participants
@lixuguang1988

lixuguang1988 commented Nov 6, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.10.4

Environment

window chrome antd 3.8.4 重新连接antd3.10.4

Reproduction link

https://codepen.io/anon/pen/NEqvJM?editors=0010

Steps to reproduce

1.勾选记录,显示button
2.点击button
3.勾选记录

What is expected?

再次勾选记录,显示button,不回放激活状态

What is actually happening?

再次勾选记录,显示button,回放激活状态


1.给button隐藏一个延时,时间短激活状态走不完,可能要大于
node.rcEndAnimTimeout = setTimeout(function () {
node.rcEndAnimTimeout = null;
if (node.rcEndListener) {
node.rcEndListener();
}
}, time * 1000 200); 这个时间

@lixuguang1988 lixuguang1988 changed the title from 点击button按钮,然后隐藏button,再显示button,回把上次激活状态显示一遍 to 点击button按钮,然后隐藏button,再显示button,会把上次激活状态显示一遍 Nov 6, 2018

@lixuguang1988

This comment has been minimized.

lixuguang1988 commented Nov 7, 2018

//_util/wave.js 43行 加上node.style.display==="none" 
if (!node || !node.getAttribute || node.getAttribute('disabled') || node.style.display === "none" || node.className.indexOf('disabled') >= 0) {
      return;
}

@afc163 afc163 reopened this Nov 7, 2018

@afc163 afc163 assigned zombieJ and afc163 and unassigned yesmeck and zombieJ Nov 7, 2018

@afc163 afc163 added the Bug🐛 label Nov 8, 2018

@afc163 afc163 closed this in a8d2a0a Nov 8, 2018

ardok added a commit to ardok/ant-design that referenced this issue Nov 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment