Hi,
We're using this component but have noticed that the OnDestroy should be implemented to disconnect the observer. Otherwise you can get javascript errors when the observer triggers and the root or target elements no longer exist.
So we ended up adding the following to fix the issue:
OnDestroy (Javascript block):
$parameters.ObserverObj.disconnect();
Can this be added to the component?
Kind regards,
Steven
Hello, Steven.
I've uploaded a new version which adds the OnDestroy of the block.
It also allows you to call programmatically the disconnect method on a observer.
Hope it helps :)
Ivo