Skip to content

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

@xueqianz

Description

@xueqianz

By introducing the proxyObject a month ago (Commit: c1dc1ed), 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)
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions