Open acivier-serial opened 4 years ago
This is impacting me as well.
same issue for me, is there a workaround ?
just found a workaround
this.render.removeChild(parent, originalElement);
if (originalElement.parentNode) {
originalElement.parentNode.removeChild(originalElement);
}
When using the
NativeScriptAnimationsModule
with shadow on a element you got this error:ERROR Error: View already has a parent. View: Button(3) Parent: StackLayout(2)
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Just import the
NativeScriptAnimationsModule
in your app.module.ts then use the shadow directive on an element.This is probably caused by the addIosWrapper function inside the directive https://github.com/JoshDSommer/nativescript-ngx-shadow/blob/6ca285021bf6ff853a7a74554ecd713e6bb97b6a/lib/src/nativescript-ngx-shadow/ng-shadow.directive.ts#L126-L140
Is there any code involved?
Here is a sample project to reproduce the issue : https://github.com/acivier-serial/issue-ngx-shadow-angular-animation