Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Fix IE11 for server-side support #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chris5287
Copy link

@chris5287 chris5287 commented Jun 1, 2020

Fix function declaration that doesn't work in IE11.

IE11 does not have lastModified field, but lastModifiedDate appears to work on all platforms.

Also IE11 fixes two events for selection, due to elem.value = "" (see https://www.drupal.org/node/2301527) so check length of files before processing to skip empty list

@ChericeD
Copy link

ChericeD commented Jul 7, 2020

I was not able to get this working on IE11. It lets me select a file but it doesn't call window.BlazroInputFile.init So maybe the problem is in my blazor code.(?) I works on other browsers(Edge/Chrome) . I am using blazor.polyfil.js
Any Suggestions?

@chris5287
Copy link
Author

Any errors in IE11 developer tools?

@ChericeD
Copy link

ChericeD commented Jul 8, 2020

Thanks! The problem was my mis-understanding of where to put the js files in VisualStudio solutions with multiple projects.
When executing inputFile.js thru Visual Studio, it shows me the newer version of inputfile.js. But when using F12 on IE11 it showed that it was executing the previous version (Using LastModifed not LastModifedDate)
It works for me now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants