mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(ios): property mask on 'undefined' during view disposal (#10404)
This commit is contained in:
committed by
GitHub
parent
8129916f98
commit
212d086676
@@ -74,12 +74,15 @@ export class View extends ViewCommon implements ViewDefinition {
|
||||
this._hasTransform = false;
|
||||
this._hasPendingTransform = false;
|
||||
|
||||
// If native view extends UIView, perform a background cleanup to get rid of shadow layers
|
||||
if (this.nativeViewProtected instanceof UIView) {
|
||||
// Make sure shadows get removed
|
||||
this.style.backgroundInternal.clearFlags |= BackgroundClearFlags.CLEAR_BOX_SHADOW;
|
||||
|
||||
// Perform background cleanup
|
||||
iosBackground.clearBackgroundVisualEffects(this);
|
||||
}
|
||||
}
|
||||
|
||||
public requestLayout(): void {
|
||||
this._privateFlags |= PFLAG_FORCE_LAYOUT;
|
||||
|
||||
Reference in New Issue
Block a user