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

Elements sitting within and above the tappable area need to override (nested Tappable)

Open ericjames opened this issue 6 years ago • 0 comments

An element that sits inside a tappable area with a higher zindex should take precedence and not trigger the tappable event inside it. In my case the underlying "card" layer is tappable as a whole but there is a button element that should have its own tap action.

stopPropagation doesn't seem to do anything. There really should be a "bubble" level specification.

<Tappable>
    Card layer divs tappable
    <Tappable><Button> zIndex = 100, does its own thing, Card layer ignored</Button></Tappable>
</Tappable>

ericjames avatar Jul 26 '19 18:07 ericjames