ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Import is not working with Firefox

Open coffeetime96 opened this issue 11 years ago • 1 comments

It was working until recently. So I am assuming some other fixes caused this issue. I received the error as "TypeError: event.srcElement is undefined." when import csv file to ui grid. Same code works fine on IE and Chrome. Even the example under tutor doesn't work in Firefox. http://ui-grid.info/docs/#/tutorial/207_importing_data image

And thanks for all the hard work and Merry Christmas!

coffeetime96 avatar Dec 25 '14 20:12 coffeetime96

I don't have firefox installed, but these two links suggest a way to handle it, apparently firefox has event.target instead of event.srcElement.

http://stackoverflow.com/questions/5301643/how-can-i-make-event-srcelement-work-in-firefox-and-what-does-it-mean http://stackoverflow.com/questions/12460999/event-srcelement-in-firefox

There's no reason it'd break what's already there, so I'll do the change and push it, you can see whether it fixes the issue for you.

PaulL1 avatar Dec 26 '14 19:12 PaulL1