Skip to content

Multiple file input instances renders incorrectly. #68

@StalkAlex

Description

@StalkAlex

This is my view code:

echo '<label class="control-label">One</label>';
echo FileInput::widget([
    'model' => new UploadForm(),
    'attribute' => 'file',
]);
echo '<label class="control-label">Two</label>';
echo FileInput::widget([
    'model' => new UploadForm(),
    'attribute' => 'file',
]);

I see this on the page. Second input is spinning infinitely.
default

As I understand problem is in same attribute for both widgets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions