Closed todesstoss closed 1 year ago
bump on this getting merged. i'm currently having to do a work around for the issue this addresses
This will need a rebase, but mostly because v6.9.0 was released in the mean time, which introduced just enough code to require manual code selection.
Sorry for the delay. PR Updated
please merge
+1 on getting this merged.
why closed?
Because time moved on and React completely changed how things are "supposed to be done". Modern React is based on hooks, and https://github.com/Pomax/react-onclickoutside#functional-component-with-usestate-hook explains how to do what this HoC achieved for older versions of React.
Added reaction on
disableOnClickOutside
property change. Activates onfalse
, deactivates ontrue
. Currently this property affects activation only on component’s mount phaseFix for https://github.com/Pomax/react-onclickoutside/issues/317