Skip to content

fieldUpload onChange event throws ReferenceError in Firefox #422

@jewbetcha

Description

@jewbetcha
  • I'm submitting a ...
    • bug report
  • Do you want to request a feature or report a bug?
    Bug
  • What is the current behavior?
    In Firefox latest (59.0.1), fieldUpload event onChange throws error ReferenceError: event is not defined. This issue does not exist in latest Chrome. Could it be related to the fact that Firefox does not support a global window.event object?

  • What is the expected behavior?
    The ability to access the event object for fieldUpload fields in the schema. ex:

onChanged: function(model, schema, event, instance) {
    const file = event.target.files[0];
}
  • What is the motivation / use case for changing the behavior?
    Need the ability to read/process file data on input upload.
  • Please tell us about your environment:

    • Version: 2.2.1
    • Browser: Firefox 59.0.1
    • Language: ES6/7

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