react-select icon indicating copy to clipboard operation
react-select copied to clipboard

React 16 Production environment: findDOMNode was called on an unmounted component.

Open ncphillips opened this issue 9 years ago • 4 comments

We tried upgrading to React 16 but react-select is preventing us from doing so because of an issue with calling findDOMNode on an unmounted component.

The error is below:

image

I'm trying to get some more information now.

ncphillips avatar Oct 10 '17 14:10 ncphillips

Hi @ncphillips can you provide a reproducible case? It seems the menu is open and is focused when the Select is unmounted?

agirton avatar Oct 11 '17 03:10 agirton

This was a really weird bug.

  • I'm using Typescript and the import used to be: import * as Select from 'react-select'.
  • We switched it to import Select from 'react-select'

That fixed it. I don't know why.

ncphillips avatar Oct 11 '17 20:10 ncphillips

I'm having the same problem and I can reproduce by using your creatable demo

The error occurs at the exact line that @ncphillips mentioned. Could you re-open this issue so that I don't have to duplicate the issue?

I'm using react-select v1.0.0-rc.10 and react 16. Browser: Chrome 61

mrtrandinhvn avatar Oct 27 '17 02:10 mrtrandinhvn

Updating to 1.3.0 fixed it for me.

ziodave avatar Nov 09 '18 14:11 ziodave