Skip to content

data-input not working #67

@jayked

Description

@jayked

I have the following code in my template :

<a href="#"
      class="filemanager filemanagerImages btn btn-primary"
      data-input="testManagerField"
      data-preview="testManagerHolder">
    Choose an image
</a>
<input type="text"
       id="testManagerField">
<img id="testManagerHolder">

And the following code in my javascript file

$('.filemanager').click(function (e)
{
    e.preventDefault();
});

$('.filemanagerFiles').filemanager('file');
$('.filemanagerImages').filemanager('image');

When a file is selected the preview image is successfully changed, but the input field's value is never changed. Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBehaviors that do not meet expectation.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions