-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE11 Member not found fix Wrap accesing the cssText property in a try...catch #1415
Conversation
I was having the same error in IE11, until I saw this issue and the try..catch worked for me as well. I wasn't using font-awesome, not sure exactly what was triggering it. |
So when will the next release be out? I am having the same issue with IE11 |
Your code gave various Console errors in IE11, however this doesn't:
Now, the above will log the following in the Console i.e. there seems to be a problem with the Flatpickr (date picker) in my project, which is solved by the try...catch above: html2canvas: Unable to access cssText property fpFadeInDown |
I think you just need to add an empty string as your initial value on the call to reduce (according to MDN: "Calling reduce() on an empty array without an initial value is an error."). The call to reduce in the original code has that, and trying to use this patch locally in a project throws exceptions until I added that. Tests seem to be passing locally as well with that addition. |
@simonpinn Hello! I use the latest version 1.0.0-rc.0, but also has the same problem in IE11. |
@xiaocoati can you share an example that replicates it on jsfiddle? |
Hello niklasvh! Because I'm in China, I can't open jsfiddle, so I make an example on JSRUN https://jsrun.net/uJXKp |
@niklasvh And because the project is the company project, so I can't put it on github, so I make another simple example. But the strange thing is, now I cannot reproduce the same problem which happened in my company project, but I meet a new problem in IE11 "The data area passed to the system call is too small". Can you please have a look? |
@niklasvh I have the sam problem using version 1.0.0-rc.1 in IE11. |
@niklasvh I also meet the probelm using version 1.0.0-rc.1 in IE 11. |
#1374
Reproduced the above issue and located the cause, it happens in the createElementClone function when it attempts to access the cssText property, for some reason when using font-awesome, an element with fa-spin throws this error in IE when accessing the property.
Wrapping the property access in a try catch solves the immediate issue.