wwan5803/react-modal-resizable-draggable

[disableKeystroke] componentWillUnmount

Lincerossa opened this issue · 5 comments

Downloading it from npm, it has this error.

/src/index.js
line 84 -> disableKeystroke is not defined

It needs to be defined as
const { disableKeystroke } = this.props
at line 81

Your code is also not working.

All of you
also should have to fix the code "componentWillUnmount" like a "ComponentDidMount"
in the main.js

For example, just add the code (var t=this.props.disableKeystroke;)
and add 't' before '||'

Maybe you can find what it is.

However,
after fixing it, we still can see this message and I couldn't fix it.
'can't perform a react state update on an unmounted component'

@mrkyel
Is this already fixed?
If not -
Can you give me code to fix this?

Fixed, and you are welcome to fork this project for any purpose