Skip to content

Image keeps adding themself when some other field in document changed #36

@perkthefox

Description

@perkthefox

Solution:
Replace
$(document).on("change", this.obj.selector, function() { pekeUpload.checkFile(pekeUpload.obj[0].files[0]); });

With
$(document).on("change", '#div-block-where-upload-form-is', function() { pekeUpload.checkFile(pekeUpload.obj[0].files[0]); });

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