Skip to content

files(e) logic seems to be incorrect for testing #59

@kevinansfield

Description

@kevinansfield

The files(e) conditional appears to be in the wrong order for testing because e.target.files will be an empty FileList which is truthy so the testingFiles branches are never reached.

I changed the behaviour in an override component to the following which is working fine for me but I may have missed something:

files(e) {
    return (e.originalEvent || e).testingFiles || e.target.files;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions