Skip to content

使用dialog组件报findDOMNode is deprecated #3360

@359470622

Description

@359470622

NutUI React 包名

@nutui/nutui-react

NutUI React 版本号

3.0.18

平台

h5

重现链接

暂无,谢谢

重现步骤

setVisible(false)} onCancel={() => setVisible(false)}> {translated[localeKey].welcome}

期望的结果是什么?

期望修复findDOMNode is deprecated错误,谢谢

实际的结果是什么?

react-dom.development.js:86 Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here:

环境信息

No response

其他补充信息

No response

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