react-onclickoutside
react-onclickoutside copied to clipboard
No reaction on disableOnClickOutside property change
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.