question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: onclickoutside component @trigger not working

See original GitHub issue

Hello,

I have the feeling the @trigger of the onclickoutside component is not working. The function version does work as expected.

I have created a example repo of the bug -> https://github.com/wouterkroes/onclickoutside-bug. I have implemented both versions (function & component) of onclickoutside. In the demo you can see that the functionCount updates as expected. But the componentCount does not.

Greetings,

Wouter

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
artmakarovcommented, Feb 1, 2022

Also onClickOutside does not work in Safari (desktop, mobile)

0reactions
stale[bot]commented, Sep 14, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

handleClickOutside not called when clicking on a disabled ...
I think I've come across a bug in this library where clicking on a disabled button does not trigger handleClickOutside.
Read more >
Detect click outside React component - Stack Overflow
To make outer clicks work, choose a different click listener than document - nothing upwards including body . E.g. add a listener on...
Read more >
How to detect a click outside a React component
onClickOutside : sets a callback that we need to trigger when there is an outside click event; show : refers to the visibility...
Read more >
react-onclickoutside/README.md - UNPKG
5, # An onClickOutside wrapper for React components ... 15, problems with the `classList` property for SVG elements). If your code relies on....
Read more >
Best VueUse Composables - Vue Mastery
Unless, of course, you're using the onClickOutside composable from ... break out</button> <button tab-index="-1">Stuck here forever</button> ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found