ant-design/components
Jason Miller 36a5485870
fix: Avoid mutating Event properties that are supposed to be getters (#33536)
* Avoid mutating Event properties that are supposed to be getters

React's synthetic Event objects have mutable `target` and `currentTarget` properties. These are an incorrect emulation of the corresponding DOM Event properties, which are _getters_ and cannot be assigned-to. AntD's input handling attempts to assign to these getters, which fails in Preact because it uses native Event objects. The solution is to replace the simple property assignments with property definitions, which is likely smaller anyway due to the existing use of `Object.create()` to construct a prototypal facade of Event objects.

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: afc163 <afc163@gmail.com>
2022-01-04 22:41:12 +08:00
..
__tests__ test: Update snapshot 2021-10-08 16:58:51 +08:00
_util refactor: refactor useMounted to useDestroyed 2021-12-29 17:10:16 +08:00
affix test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
alert Merge remote-tracking branch 'origin/master' into feature-merge-master 2021-12-27 10:45:42 +08:00
anchor test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
auto-complete test: update snapshot 2021-12-27 10:58:29 +08:00
avatar test: update snapshot 2021-12-27 10:58:29 +08:00
back-top test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
badge test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
breadcrumb docs: correct react-router usage for breadcrumb (#33551) 2022-01-04 21:45:05 +08:00
button fix: image demo test in argo-ci (#33523) 2022-01-02 15:16:21 +08:00
calendar Merge remote-tracking branch 'origin/master' into feature-merge-master 2021-12-27 10:45:42 +08:00
card test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
carousel test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
cascader docs: improve Cascader API documentation (#33484) 2021-12-30 11:38:48 +08:00
checkbox test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
col
collapse test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
comment test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
config-provider fix: Form should have default validateMessages in en locale (#33511) 2021-12-31 16:56:21 +08:00
date-picker Merge remote-tracking branch 'origin/master' into feature-merge-master 2021-12-27 10:45:42 +08:00
descriptions Merge remote-tracking branch 'origin/master' into feature-merge-master 2021-12-27 10:45:42 +08:00
divider fix(Divider): with text dashed border color error (#33452) 2021-12-28 19:40:33 +08:00
drawer test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
dropdown fix: Dropdown button destroyPopupOnHide prop not working #33433 (#33442) 2021-12-28 13:48:23 +08:00
empty test: update snapshot 2021-12-27 10:58:29 +08:00
form fix: Form should have default validateMessages in en locale (#33511) 2021-12-31 16:56:21 +08:00
grid test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
icon docs: changed specific to specify in basic.md (#30461) 2021-05-10 16:45:02 +08:00
image test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
input fix: Avoid mutating Event properties that are supposed to be getters (#33536) 2022-01-04 22:41:12 +08:00
input-number fix: image demo test in argo-ci (#33523) 2022-01-02 15:16:21 +08:00
layout fix: image demo test in argo-ci (#33523) 2022-01-02 15:16:21 +08:00
list Merge remote-tracking branch 'origin/master' into feature-merge-master 2021-12-27 10:45:42 +08:00
locale chore: remove whitespace 2021-12-31 16:54:15 +08:00
locale-provider chore: merge master 2021-11-26 15:19:31 +08:00
mentions test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
menu test: update snapshot 2021-12-27 10:58:29 +08:00
message test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
modal docs: fix version error (#33443) 2021-12-28 13:29:43 +08:00
notification test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
overview docs: fix typo on Component Overview docs (#27919) 2020-11-21 08:29:38 +08:00
page-header fix: PageHeader state update error (#33546) 2022-01-04 22:28:09 +08:00
pagination test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
popconfirm Merge pull request #33432 from MadCcc/dev 2021-12-29 17:49:15 +08:00
popover test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
progress test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
radio test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
rate test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
result test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
row
select fix: Select tag margin issue when using tagRender (#33539) 2022-01-04 15:11:04 +08:00
skeleton fix: Skeleton missing style (#33405) 2021-12-24 14:23:32 +08:00
slider test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
space test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
spin test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
statistic test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
steps test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
style refatcor: Move mixins back (#32920) 2021-11-17 22:36:51 +08:00
switch test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
table test: add test case for #33487 (#33492) 2021-12-31 10:44:16 +08:00
tabs test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
tag test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
time-picker Merge remote-tracking branch 'origin/master' into feature-merge-master 2021-12-27 10:45:42 +08:00
timeline test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
tooltip test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
transfer test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
tree test: Demo check popup content (#33378) 2021-12-23 11:51:10 +08:00
tree-select test: Update snapshot 2021-12-28 16:17:37 +08:00
typography test: update snapshot 2021-12-27 10:58:29 +08:00
upload docs: fix update demo 2022-01-04 21:44:08 +08:00
version refactor: 📦 Generate version.js from package.json (#23957) 2020-05-08 17:49:22 +08:00
index.tsx fix: export TreeDataNode (#30745) 2021-05-28 13:26:18 +08:00