Skip to content

fix: AdditionalAttributes seem to be ignored in FluentInputFile #3440

@anpfiff

Description

@anpfiff

🐛 Bug Report

FluentInputFile does not render HTML attributes when AdditionalAttributes is set.

💻 Repro or Code Sample

<FluentInputFile id="fileUploader" Accept="image/*" AdditionalAttributes="@_additionalAttributes"... />

private IReadOnlyDictionary<string, object> _additionalAttributes = new Dictionary<string, object> { { "capture", "user" } };

🤔 Expected Behavior

On the rendered HTML there should be the capture attribute with value "user":
<input id="fileUploader" accept="image/*" type="file" capture="user" ...>

😯 Current Behavior

The capture attribute is missing:
<input id="fileUploader" accept="image/*" type="file"...>

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNew issue. Needs to be looked at

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions