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

Switch wrapped in tooltip causes error "cannot find property blur" #24262

Closed
1 task done
mtjn opened this issue May 18, 2020 · 11 comments
Closed
1 task done

Switch wrapped in tooltip causes error "cannot find property blur" #24262

mtjn opened this issue May 18, 2020 · 11 comments

Comments

@mtjn
Copy link

mtjn commented May 18, 2020

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Click switch

What is expected?

Switch toggles normally

What is actually happening?

Clicking triggers "cannot read property blur of 'undefined'" error

Environment Info
antd 4.2.4
React 16.12.0
System Ubuntu 20.04
Browser Chromium Version 81.0.4044.138 (Official Build) snap (64-bit)

In my production app, this causes a console error and the page lags. JS heap increases to 180MB. In the minimal reproduction, the page crashes.

Perhaps related to #4853 ?

@hengkx
Copy link
Member

hengkx commented May 18, 2020

ref #24254

@hengkx hengkx closed this as completed May 18, 2020
@afc163 afc163 reopened this May 18, 2020
@afc163
Copy link
Member

afc163 commented May 18, 2020

可以发个 rc-switch@3.0.2 hot fix,不然要等周末。

@afc163
Copy link
Member

afc163 commented May 19, 2020

It works well in my local envoironment, I think it is a codesandbox issue.

@afc163 afc163 closed this as completed May 19, 2020
@mtjn
Copy link
Author

mtjn commented May 19, 2020

The error also occurs for me in my production app on my local environment.

In my production app, this causes a console error and the page lags. JS heap increases to 180MB. In the minimal reproduction, the page crashes.

@afc163
Copy link
Member

afc163 commented May 19, 2020

@mtjn Could you provider a minimal git repo to reproduce?

@yoyo837
Copy link
Contributor

yoyo837 commented May 19, 2020

@yoyo837
Copy link
Contributor

yoyo837 commented May 19, 2020

@afc163 Need a patch release for 3.0.1

@yoyo837
Copy link
Contributor

yoyo837 commented May 19, 2020

Please help to creating v.3.0.x branch in https://github.com/react-component/switch.

@afc163 afc163 reopened this May 19, 2020
@afc163
Copy link
Member

afc163 commented May 19, 2020

@yoyo837
Copy link
Contributor

yoyo837 commented May 19, 2020

Pls remove node_modules and package-lock.json or yarn.lock file than reinstall it.

@yoyo837 yoyo837 closed this as completed May 19, 2020
@mtjn
Copy link
Author

mtjn commented May 19, 2020

Pls remove node_modules and package-lock.json or yarn.lock file than reinstall it.

this fixed it, thank you.

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

4 participants