Capture events from child of Portal
Hey I need some advice. I want to captured an event of an element inside a Portal by the parent element of the portal.
But in the test file the event is not captured at all.
If I remove/comment out the Portal it does work but with the Portal it doesn't.
Does anyone have a solution for this?
But in the test file the event is not captured at all.
If I remove/comment out the Portal it does work but with the Portal it doesn't.
Does anyone have a solution for this?
function App() {
return (
<>
<div
//@ts-ignore
oncapture:pointerdown={pointerDown}
>
<Portal>
<button data-testid="btn" />
</Portal>
</div>
</>
);
}
