0

There is a global document click event(React hook useClickAway). But when you click on a slide, the event does not fire About example: circle in header, like avatar dropdown, click on it trigger menu. Menu closes if you click anywhere outside. How to close menu without hacks, when click to swiper slide too? Codesandbox example

Dharman
  • 26,923
  • 21
  • 73
  • 125
Artur13
  • 11
  • 3

1 Answers1

0

prop touchStartPreventDefault={false} is solution

Artur13
  • 11
  • 3
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 24 '22 at 08:54