react-component / util

Common Utils For React Component
util.vercel.app
MIT License
621 stars 177 forks source link

Bug: proxyObject prevents the element from changing its value #546

Open xueqianz opened 1 month ago

xueqianz commented 1 month ago

By introducing the proxyObject a month ago (Commit: https://github.com/react-component/util/commit/c1dc1ed79ab2b0de6fd4cf9f1fd36f7644ff6eee), there is no possible to set the value (e.g., input.value, or div.innerHTML, etc.) directly.

When I assign a ref this.inputRef to a rc-input-number component, for example, If the code is this.inputRef.value="123", the following error will be triggerred.

Uncaught TypeError: Illegal invocation
    at Proxy.set (react-dom.development.js:1661:1)
    ...