Open ilovejcm opened 1 week ago
Field
https://hitu.antgroup-inc.cn/codeblocks/8b97b84a
Expect: auto clear value in field when custom function component has been unmounted just like other fusion components dose
这是您为 Fusion/Next 提的第一个 issue,感谢您对 Fusion 的信任和支持,我们会尽快进行处理。
因为自定义组件是函数式组件,没有ref,造成field 无法跟进组件状态。提供一种解决方案,将函数式组件包裹forwardRef,示例:https://hitu.antgroup-inc.cn/codeblocks/7b3abf8b
Component
Field
Reproduction link
https://hitu.antgroup-inc.cn/codeblocks/8b97b84a
Steps to reproduce
Expect: auto clear value in field when custom function component has been unmounted just like other fusion components dose