Hello,
(Please see the following post: Nested custom components issues (Devextreme and Aurelia 2.0 story) ).
I’ve come to the conclusion that the need to dispose of an enhanced view (what’s given to us upon enhancement) interferes with those third-party components that handle their own visibility (in some cases). We may not always receive a DOM-removal event for children of the parent component.
With the Devextreme components, Popover, Popup, and Tooltip, are hidden and shown under the power of the third-party component. This leaves inner enhanced content dangling. Hiding a popup doesn’t provide an opportunity to dispose of inner content, which leaves the controller of the consuming component in an unstable state.
This problem didn’t occur in Aurelia 1.0 because there was no need to dispose of the view. Interestingly, I never had to worry about whether the view was going to be available on which to call lifecycle hooks. With Aurelia 2.0, it is possible to have an enhancedView on which there is no longer a deactivate or dispose method.
In Aurelia 1.0, the aforementioned components work fine with enhanced inner content. In Aurelia 2.0, they do not.
How do we handle this scenario?