- 
                Notifications
    
You must be signed in to change notification settings  - Fork 531
 
Closed
Description
- 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),fieldUploadeventonChangethrows errorReferenceError: 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 globalwindow.eventobject? - 
What is the expected behavior?
The ability to access the event object forfieldUploadfields 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
 
 
- Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
It seems as though Firefox handles the event object a bit differently:
https://stackoverflow.com/questions/7457260/event-target-not-working-on-firefox
https://stackoverflow.com/questions/9636400/event-equivalent-in-firefox 
ik9999
Metadata
Metadata
Assignees
Labels
No labels