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

OverflowMenu onBlur causes unmounted state update #279

Open
5 tasks done
michaelx opened this issue Apr 22, 2020 · 0 comments
Open
5 tasks done

OverflowMenu onBlur causes unmounted state update #279

michaelx opened this issue Apr 22, 2020 · 0 comments

Comments

@michaelx
Copy link
Contributor

michaelx commented Apr 22, 2020

Bug Report

Prerequisites

  • Can you reproduce the problem in a MWE?
  • Are you running the latest version?
  • Did you check the FAQs to see if that helps you?
  • Are you reporting to the correct repository?
  • Did you perform a search in the issues?

For more information, see the CONTRIBUTING guide.

Versions

precise-ui: 1.2.0
node: 12.13.1
npm: 6.12.1

Description

Double clicking the trigger icon of the menu throws:

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.

See also attachment at the end.

Steps to Reproduce

  1. npm start
  2. Go to OverflowMenu component
  3. Click on the icon one time
  4. Click on the icon again
  5. Error will come up

Expected behavior: No error
Environment details: macOS 10.15.4, all browsers

Possible Solution

Removing onBlur will resolve it. Is it needed? Outside click and list selection will also close it.


OverflowMenu-memory-leak

@michaelx michaelx changed the title OverflowMenu unmounted state update OverflowMenu onBlur causes unmounted state update Apr 22, 2020
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

1 participant