You need to sign in to do that
Don't have an account?
Andrew Echevarria 5
Spring 19 Lightning Component Error - target.getBoundingClientRect is not a function
I was developing a Lightning Component with JQuery and Dragula (a JS drag-and-drop library). Everything was going well, until the Sandbox updated to the Spring 19 Release and now I recieve an error when I try to drag-drop. The component still works in my other Sandbox that is in Winter 19. I receive the following error:
Uncaught TypeError: target.getBoundingClientRect is not a function throws at https://ceievents--maintask.lightning.force.com/resource/1546019884000/Dragula/dist/dragula.js:515:25
The line referenced is a line in the library that calls the .getBoundingClientRect() function. I don't get any error or notes on the Console Log. Any guidance would be greatly appreciated.
Uncaught TypeError: target.getBoundingClientRect is not a function throws at https://ceievents--maintask.lightning.force.com/resource/1546019884000/Dragula/dist/dragula.js:515:25
The line referenced is a line in the library that calls the .getBoundingClientRect() function. I don't get any error or notes on the Console Log. Any guidance would be greatly appreciated.
All are working in Winter'19 but not in Spring'19 Sandbox. Does any one else facing the issue?
- Works in Winter '19
- Error thrown in Spring '19
One thing I did notice is that one of our older components runnning api version 39 (no Locker Service) didn't have these issues, so it is potentially a Locker Service problem.