fix: Avoid mutating Event properties that are supposed to be getters (#33536)
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 <1f47b30b0ff64fbf34ee708f2b94f6fccd6a0c8a@gmail.com>
zheeeng/ant-design,ant-design/ant-design,elevensky/ant-design,elevensky/ant-design,icaife/ant-design,icaife/ant-design,ant-design/ant-design,ant-design/ant-design,icaife/ant-design,ant-design/ant-design,zheeeng/ant-design,zheeeng/ant-design,elevensky/ant-design,icaife/ant-design,elevensky/ant-design,zheeeng/ant-design