We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0e178b commit 2f1fe03Copy full SHA for 2f1fe03
src/cdk/drag-drop/drag-ref.ts
@@ -829,7 +829,10 @@ export class DragRef<T = any> {
829
const parent = element.parentNode as HTMLElement;
830
const placeholder = (this._placeholder = this._createPlaceholderElement());
831
const anchor = (this._anchor =
832
- this._anchor || this._document.createComment(ngDevMode ? 'cdk-drag-anchor' : ''));
+ this._anchor ||
833
+ this._document.createComment(
834
+ typeof ngDevMode === 'undefined' || ngDevMode ? 'cdk-drag-anchor' : '',
835
+ ));
836
837
// Insert an anchor node so that we can restore the element's position in the DOM.
838
parent.insertBefore(anchor, element);
0 commit comments