react-shortcuts icon indicating copy to clipboard operation
react-shortcuts copied to clipboard

Doc request, confused on receiving child events that have called stopPropagation

Open natew opened this issue 8 years ago • 1 comments

I have a <Shortcuts isolate /> handler, and in a child component I have a form that handles a keyDown event and calls e.stopPropagation(). I didn't expect <Shortcuts /> to receive the events but it does.

Also, reading docs, the isolate prop is weirdly named. Perhaps I'm using it wrong but it wasn't receiving any events unless I did isolate, now it receives these ones that are being prevented!

Finally, what is gourmet?

image

natew avatar May 17 '17 17:05 natew

@natew Can you please share a gist of the problem so I can better understand it? isolate is basically a hack around React event system. I agree the name is confusing, do you have a better idea?

Finally, what is gourmet?

The correct question is "who is gourmet". I suppose those are people who love 🌮 tacos or something.

petrbrzek avatar May 17 '17 18:05 petrbrzek