scrollmonitor icon indicating copy to clipboard operation
scrollmonitor copied to clipboard

IE11 error on removed elements

Open niklashultstrom opened this issue 8 years ago • 2 comments
trafficstars

Watchers with their watchItem removed by eg. $('.watched-element').remove() will run in to an error on IE11, when trying to access the .getBoundingClientRect()

niklashultstrom avatar May 08 '17 15:05 niklashultstrom

@stutrek: Can we check at: https://github.com/stutrek/scrollMonitor/blob/46993cd5eb48fc4bafa1d20d77c958dd09d11d35/src/watcher.js#L127 that if watchItem exist in DOM tree, otherwise skip the operations?

mahboob-awan avatar Mar 07 '18 11:03 mahboob-awan

If you send me a PR with a check I will accept it. I am very busy in my work and personal lives right now. Thanks

stutrek avatar Mar 08 '18 16:03 stutrek