originalEvent.srcElement.closest not working in IE Angular
originalEvent.srcElement.closest not working in IE Angular
Angular application with the following code is not working.
Angular code, trying to access the td
of grid where the user clicks button from. It required the following code:
td
originalEvent.srcElement.closest("td")
The code is working fine in Chrome, but not in IE.
Can someone suggest me an alternative to this?
Added the polyfill and it worked
– Bijith NV
Oct 15 '18 at 20:06
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Just add a polyfill for it, like npmjs.com/package/element-closest
– user184994
Sep 13 '18 at 19:55