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

No reaction on disableOnClickOutside property change

Open todesstoss opened this issue 5 years ago • 0 comments

Hello, It seems that after last update i should explicitly call enableOnClickOutside method to enable functionality if initially disableOnClickOutside property was false. It's not the way it used to work before and this change breaks my code.

I think methods enableOnClickOutside/disableOnClickOutside should be called in componentDidUpdate hook on disableOnClickOutside prop change.

I can prepare PR if you don't mind.

Thanks in advance.

todesstoss avatar Apr 13 '19 12:04 todesstoss