Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] form-render preserve=false, tablist 组件删除中间的数据会导致下方数据被清空! #1526

Open
blinkcat opened this issue Jun 4, 2024 · 0 comments
Assignees

Comments

@blinkcat
Copy link

blinkcat commented Jun 4, 2024

使用官方的实例,https://xrender.fun/form-render/display-row#tablelist%E6%A0%87%E7%AD%BE%E6%8D%A2%E8%A1%8C

export default () => {
  const form = useForm();
  return <FormRender preserve={false} schema={schema} form={form} />;
};

在FormRender上加上preserve属性。删除第二条数据

screenshot-20240604-154001

结果变成这样了,第三条数据的值没了。

screenshot-20240604-154143

期望的正常结果是,第二条数据被删除,第三条的数据保留。

可复现的demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants