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

ModelAdmin 表单里面所有默认文本输入框均无法输入空值 #177

Open
oubeichen opened this issue Jul 19, 2024 · 0 comments
Open

Comments

@oubeichen
Copy link

https://github.com/amisadmin/fastapi-amis-admin/blame/dfaf22887babf6f6efd50eb513d93a47e7025622/fastapi_amis_admin/admin/parser.py#L289

这行给 input-text 都加了个 clearValueOnEmpty 参数,会忽略掉对应字段。但是实际上提交的时候数据还在。所以导致了当输入空值的时候,会把原来的值填进去,导致修改失败。

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

1 participant