#useClickOutside: event.stopPropagation()

4 messages · Page 1 of 1 (latest)

rigid shale
#

I am making a web app using Mantine and I've stumbled into an indirect-issue with useClickOutside (used by Menu)

#

here's my app for reference

  • the ActionIcon with the plus is the menu target
  • rest of the things outside that Paper that contains the ActionIcon have mouse/etc events that call stopPropagation
#

useClickOutside can't capture the events because of the stopPropagation, but clicking on the "meow :3" does work because it doesnt have stopPropagation

#

one possible fix is to use useCapture event listener option, however I think that should be debated