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

This issue has been created 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-09-27
Star Count 195296
Watcher Count 6655
Fork Count 40431
Issue Count 1113

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
feat: `settings` patch 6 2022-07-11 2022-09-24
Support switch languages in the context menu 0 2022-03-31 2022-08-01
Make test results in numerous warnings regarding linking against a dylib which Is not safe for use in application extensions 0 2022-09-06 2022-09-12
import.sty not found 1 2021-08-19 2022-09-13
Focus first field 4 2019-12-21 2022-01-09
Add a themes dialog and editor 0 2022-02-06 2022-09-03
Delete Slicer4 CDash project 4 2021-12-03 2022-07-05
Assembly version issue 4 2021-11-29 2022-09-02
New to Js, getting cors error, can someone help me out :( 1 2021-07-11 2022-08-05
Localization 3 2021-03-27 2022-01-13
[CT-245] [Bug] SQL with Japanese/Chinese characters not applied correctly in Databricks 1 2022-02-16 2022-08-19
【邀请大家测试】回显 html 功能(初始化内容支持 html 格式) 19 2022-01-12 2022-08-22
Next.js引入wangEditor编译时会提示关于useLayoutEffect的警告 1 2022-01-17 2022-03-07
连续回车,光标超出了编辑区域的下边框,没有自动滚动 4 2022-01-14 2022-09-02
【vue2 + wangEditor4.7.11 + @wangeditor/editor0.13.6】 emotion中可以增加自定义的表情包吗? 1 2022-01-11 2022-07-15
文末换行时,config.onchange回调接收到的br与实际的行数不一致 6 2021-10-08 2022-07-25
[FEATURE-REQUEST] Parameter in join function as like in pandas merge function 1 2022-05-13 2022-09-25
Error when starting neovide 5 2022-06-13 2022-09-01
Repeatedly (re-)loading any shader leaks memory 1 2022-07-27 2022-09-17
what's happen when event loop encountered event bubbling? 1 2021-11-15 2022-09-12
does it not support Alhambra II? 3 2019-01-15 2022-09-25
VPN Automatic Switching Locations 0 2022-04-13 2022-09-11
Problemas al intentar abrir 0 2022-04-19 2022-09-11
[Core][Nightly-test] scheduling_test_many_0s_tasks_many_nodes failed 1 2022-04-26 2022-04-22
[CI] Use Bazel version 4.2.2 instead of 4.2.1 for MacOS Monterey 0 2022-04-26 2022-04-22
[Core][multiprocessing] Make Pool.imap() and Pool.imap_unordered() throw TypeError on non-iterable/iterator 5 2022-04-26 2022-08-16
(4.44.0 ARM package) "Illegal instruction" error 2 2022-03-06 2022-09-27
Add TypeScript documentation in "Writing a Plugin" 0 2021-12-06 2022-09-03
Newlines not being preserved in certain email clients 0 2022-08-18 2022-08-19
Public Dashboard: Error on using Grafana-simple-json-datasource 2 2022-08-18 2022-09-19
When using singleQuadrantDomainPadding, the Y axis is broken 1 2021-12-14 2022-09-07
test: Unsafe usage of `env::set_var` 1 2022-01-20 2022-09-27
Fix verb form 0 2021-03-08 2021-12-27
Problem with modal in Next.js 2 2022-03-16 2022-04-15
0.6.0: coroutines build hang in EngineManager.findJarFile(EngineManager.kt:68) 5 2022-09-05 2022-09-26
0.6.0: Class org/locationtech/jts/geom/Geometry not found 3 2022-09-02 2022-09-26
bug: Item with multiple inputs including datetime renders incorrectly in RTL mode 2 2022-06-15 2022-09-27
Wrong message - Instanceof between Xxx and string 1 2021-10-02 2022-08-07
I would like to introduce a new C# binding 4 2020-08-13 2022-09-03
Android - Prevent screen from going off when scanning 3 2022-05-17 2022-09-16
Support manually specifying keys that need conflict check in pessimistic transactions 0 2022-07-26 2022-08-10
Getting Started with Blockly, Step 6 breaks the functionality when I add in the "play" block 4 2022-04-19 2022-09-16
Hi, Is there any way to disable edit row (the second row of table), and I wanna open modal and redirect link with button (edit, detail,...), how can I do it? 0 2021-02-05 2022-09-07
The project does not appear on solana.com/ecosystem 4 2021-09-30 2022-09-25
Messaging API - September 2020 update 0 2020-09-02 2022-09-25
Allocator split function behavior doesn't match documentation 0 2021-11-09 2022-08-18
[Bug][CustomViews] Allow objects - empy does not allow all 1 2022-07-29 2022-09-25
[Improvement]: Show user's name on metadata information panel 2 2022-07-28 2022-09-25
[Bug]: Missing filter in new version - Internal Server Error 5 2022-07-12 2022-09-16
Add "retry" button to submission error view 0 2021-02-02 2022-09-25