Bug: ReactDOM incorrect check window.event (check undefined, but maybe null)

This issue has been created since 2022-11-11.

In react-dom.js window.event compares with undefined, but in IE 10 window.event by default is null. Possibly in other browsers too.

function getCurrentEventPriority() {
    var currentEvent = window.event;
    if (currentEvent === undefined) {
      return DefaultEventPriority;
    }
    return getEventPriority(currentEvent.type);
}

Because of this issue, rendering in React versions > 18 is completely broken. (where used createRoot)

This problem is not solved by polyfills. This is not a question or a request for advice. This is a bug.

Temporary solution for those who support older browsers. This is a webpack replacement in the last chunk of the wrong check with this:
(currentEvent === undefined || currentEvent === null)

This has already been posted but no response #24778

More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-12-10
Star Count 198882
Watcher Count 6638
Fork Count 41302
Issue Count 1120

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Support for Futures and flatMap for client stub 5 2019-03-14 2022-11-27
Navigating (Bash) history shifts cursor and history string left when prompt contains emoji 0 2021-02-13 2022-11-27
Error "undefined selectedTab should not happen" using enableDeleteWhenEmpty false 1 2022-10-12 2022-11-13
Aztec Rune input validation 1 2015-01-22 2022-10-06
Clicks after exporting 0 2021-12-11 2022-12-07
Some applications are unable to connect to their servers. 2 2022-11-20 2022-11-28
Require new lines after multiline function signature 0 2021-11-13 2022-11-18
Bad indentation of hash with symbol-array literal values 1 2020-10-22 2022-12-01
DJSTRIPE_WEBHOOK_SECRET required even if setup webhook from admin interface 3 2022-08-01 2022-11-30
Output GitHub Sponsors, Funders, Contributors 2 2021-11-06 2022-11-11
WS-2021-0419 (High) detected in gson-2.3.1.jar 0 2021-11-12 2022-11-16
CVE-2021-39150 (High) detected in xstream-1.3.1.jar 0 2021-11-30 2022-11-28
CVE-2021-39152 (High) detected in xstream-1.3.1.jar 0 2021-11-30 2022-11-28
`table.xindexes` using `PRAGMA index_xinfo(table)` 5 2021-05-29 2022-10-01
[Need Help] flashing screen and weird behaviors while drawing image in spreadsheet/table cells 1 2021-10-11 2022-11-20
Add create history of PasteBin 0 2021-10-13 2022-10-24
Problem with automatic runtime 0 2022-10-26 2022-11-13
Add a chapter on GDPR 2 2022-10-23 2022-11-25
The email index is not used by `get_by_email()` method 2 2021-09-14 2022-11-15
Apple Silicon: Something went wrong installing the "sharp" module 9 2022-05-05 2022-10-05
Can't run embedded server with kafka-avro-serializer dep 6 2020-09-04 2022-11-05
Must I distribute my app with localization folder? 2 2022-03-03 2022-10-01
Re-adding an external guest for a calendar event does not restore password field 2 2022-08-19 2022-11-30
Why `API: get_start_time` CANNOT return the 'creation_time' of `FFMPEG` ? 0 2021-02-06 2022-09-27
testtissue59 0 2021-06-20 2021-12-05
I found a bug 0 2021-11-09 2021-12-20
I found a bug 0 2021-11-09 2021-12-20
testtissue35 0 2021-06-20 2021-12-05
testtissue36 0 2021-06-20 2021-12-05
testtissue37 0 2021-06-20 2021-12-30
Support multi-document transactions on the MongoDB image 1 2022-02-24 2022-11-18
browser / storybook hanging with components having ReactElement[] 2 2022-09-29 2022-10-08
[Bug]selectAll和select两个选择器的返回值应该是不一样的 5 2021-06-18 2022-12-01
Allow schema_filter to filter any object (index, column, etc) 6 2022-06-01 2022-11-11
Cannot use on custom model 4 2021-09-30 2022-12-02
[Bug Report] [Component] el-menu循环渲染dom节点乱了 5 2022-04-08 2022-11-01
Unable to load editor in iOS app 2 2022-05-22 2022-09-06
Change comment server on comment page 2 2022-02-01 2022-12-09
Text posts in draft mode 0 2021-11-23 2022-12-09
Retry option is invalid for back-end server 1 2021-11-27 2022-12-09
Calling (*T).Fatal() inside a goroutine in mux_test.go 1 2021-10-21 2022-12-02
EIseg加载模型,paddle_infer.create_predictor(config) 解析出错 3 2022-05-25 2022-11-21
IPFS HTTP services should start early and wait while the node is booting up 1 2021-11-18 2022-12-09
predict-prob always giving 1.00001 as a result for any input 4 2019-10-09 2022-10-27
[Pinot-Admin][JsonToPinotSchema] "-timeColumnName" is not a valid option 7 2021-08-19 2022-10-31
Build fails - uaa_jwt repo is not found 1 2017-07-17 2022-12-04
Use GitVersion to determine package version to be produced 1 2021-12-29 2022-12-09
Popover does not work with React 18 3 2022-04-22 2022-10-24
Cannot import NLTK stopwords through Jupyterub 3 2021-04-30 2022-12-09
I am trying to create an ide for developing flutter ,is there any some kind of documents? 2 2022-07-26 2022-11-13