Installation
npm install --save @types/react-shadow-dom-retarget-events
Summary
This package contains type definitions for react-shadow-dom-retarget-events (https://github.com/weltn24/react-shadow-dom-retarget-events#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-shadow-dom-retarget-events.
index.d.ts
export = retargetEvents;
/**
* Fixes events for react components rendered in a `shadow dom`.
*
* When you render a react component inside `shadow dom` events will not be dispatched to react. I.e. when a user clicks in your react component nothing happens. This happens (or does not happen)
* with any events.
*
* A bug is filed at [#10422](https://github.com/facebook/react/issues/10422).
*/
declare function retargetEvents(shadowRoot: ShadowRoot): void;
Additional Details
- Last updated: Tue, 06 Feb 2024 19:06:54 GMT
- Dependencies: none
Credits
These definitions were written by Remco Haszing.