mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 20:49:14 +08:00
36a5485870
* 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> |
||
---|---|---|
.. | ||
__tests__ | ||
demo | ||
style | ||
ClearableLabeledInput.tsx | ||
Group.tsx | ||
index.en-US.md | ||
index.tsx | ||
index.zh-CN.md | ||
Input.tsx | ||
Password.tsx | ||
Search.tsx | ||
TextArea.tsx | ||
utils.ts |