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 Report]: MFileInput 组件无法使用 #2183

Closed
kx500 opened this issue Oct 6, 2024 · 3 comments
Closed

[Bug Report]: MFileInput 组件无法使用 #2183

kx500 opened this issue Oct 6, 2024 · 3 comments

Comments

@kx500
Copy link

kx500 commented Oct 6, 2024

Masa.Blazor version

1.7.4

Describe the bug

最近在项目中使用了MASA.Blazor发现还存在着太多的问题了,很多组件直接用官网示例运行都报错,包括MTextField 组件,

   <MFileInput @bind-Value="_files"  AppendIcon="mdi-camera">
       <LabelContent>上传图片</LabelContent>
   </MFileInput>

@code{
private List _files = new();
}

上面用法哪里有问题?就是报错:
InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.

Expected Behavior

No response

Steps To Reproduce

No response

Reproduction code

No response

.NET version

8.0

What browsers are you seeing the problem on?

No response

Additional context

No response

@capdiem
Copy link
Contributor

capdiem commented Oct 8, 2024

@kx500 你的代码我无法复现,如果是多个文件,你需要加 Multiple 属性。

Copy link

This issue is stale because it has been open for 4 days with no activity.

Copy link

This issue is closed because it has been open for 3 days with stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants