Giter Club home page Giter Club logo

Comments (5)

zenstok avatar zenstok commented on August 21, 2024 1

https://codesandbox.io/s/clickawaylistener-example-forked-uch2g?file=/src/index.js

Above you have an example when it's not working. I figured it out and it looks like it doesn't work if i have a MaterialUI <Menu/>component with keepsMounted prop set to true.

Below you have the exact same code but with React version set to 16.14.0 and this one works.

https://codesandbox.io/s/clickawaylistener-example-forked-q7nz2?file=/src/index.js

from react-click-away-listener.

ooade avatar ooade commented on August 21, 2024 1

This has been fixed in the latest version (v2.0.1).

Thanks a lot for reporting and taking the time to create an example on CodeSandbox 🙏

from react-click-away-listener.

ooade avatar ooade commented on August 21, 2024

@zenstok Sorry about that. Can you provide the version of the Clickaway listener you are using?

from react-click-away-listener.

zenstok avatar zenstok commented on August 21, 2024

@ooade i'm using version 2.0.0

react-click-away-listener@^2.0.0:
  version "2.0.0"
  resolved "https://registry.yarnpkg.com/react-click-away-listener/-/react-click-away-listener-2.0.0.tgz#b70e4b87f8529fef2ce658469f415f15fc689c83"
  integrity sha512-tD32K4usq0v+JWgeP+8B2B84rSR8Gcvs92cnBvlZkkBrgjVWetQUuMCN7De3vyZ36UcOG97JOvWGevyTMEHtdw==

from react-click-away-listener.

ooade avatar ooade commented on August 21, 2024

Thanks.

I just updated the dependencies on the example and it works fine. Can you perhaps help recreate this on CodeSandbox and share? I'd appreciate that. 🙏

from react-click-away-listener.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.