Skip to content

Use other props passed to the Click Away Component

Compare
Choose a tag to compare
@ooade ooade released this 10 Jun 09:50

Just a few updates:

  • Props were previously discarded when passed to the Click Away component but we've made it possible to treat the Click Away component as any regular div element. By doing that, it makes it possible to style or use it in any way you want without being gated to target the div from a parent element.
  • Fixed our ESlint issue.
  • Made sure to add a dependency array in our useEffect.

S/O to @Alphy11 for this release 🎉