react
react copied to clipboard
Bug: Event.composedPath() and Event.composed missing
React version: 18.2.0
Steps To Reproduce
- Create any html element
- Add event listener
- Check if method and property exists
The current behavior
const ExampleComponent = () => {
// composedPath is not a function
return <div onClick={(e) => { e.composedPath() }}></div>
}
The expected behavior
const ExampleComponent = () => {
// composedPath should be found, as well as composed property
return <div onClick={(e) => { e.composedPath() }}></div>
}
MDN Docs for the relevant feature: https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath