Bug: Event.composedPath() and Event.composed missing

This issue has been tracked since 2022-08-31.

React version: 18.2.0

Steps To Reproduce

  1. Create any html element
  2. Add event listener
  3. 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

More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-10-05
Star Count 195628
Watcher Count 6648
Fork Count 40518
Issue Count 1111

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date