Skip to content

Commit 66afde5

Browse files
committed
fix(cdk/drag-drop): resolve incompatibility with property minification (#28980)
Fixes that the `showPopover` call was being minified by Closure and preventing the popover from opening. (cherry picked from commit 58fa9b7)
1 parent c8b62a1 commit 66afde5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cdk/drag-drop/preview-ref.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ export class PreviewRef {
6464
parent.appendChild(this._wrapper);
6565

6666
// The null check is necessary for browsers that don't support the popover API.
67-
if (this._wrapper.showPopover) {
68-
this._wrapper.showPopover();
67+
// Note that we use a string access for compatibility with Closure.
68+
if ('showPopover' in this._wrapper) {
69+
this._wrapper['showPopover']();
6970
}
7071
}
7172

0 commit comments

Comments
 (0)