diff --git a/src/app/file-explorer/file-explorer.component.ts b/src/app/file-explorer/file-explorer.component.ts index bd3751ab121b54eae61c01e351d3f9ae06873af4..e2b842c04d531c108903a7ffc0174a8f165067b8 100644 --- a/src/app/file-explorer/file-explorer.component.ts +++ b/src/app/file-explorer/file-explorer.component.ts @@ -14,8 +14,7 @@ import { RenameDialogComponent } from './modals/renameDialog/renameDialog.compon export class FileExplorerComponent { constructor(public dialog: MatDialog) {} - @ViewChild(MatMenuTrigger) - contextMenu: MatMenuTrigger; + @ViewChild(MatMenuTrigger, {static: false }) contextMenu: MatMenuTrigger; contextMenuPosition = { x: '0px', y: '0px' }; diff --git a/src/app/launch-dialog/launch-dialog.component.ts b/src/app/launch-dialog/launch-dialog.component.ts index 8239440176d99fce64d8e049092074a29b21a2b1..783c09ccb993185756bc2979b43daa15e9d68ce1 100644 --- a/src/app/launch-dialog/launch-dialog.component.ts +++ b/src/app/launch-dialog/launch-dialog.component.ts @@ -17,8 +17,7 @@ export class LaunchDialogComponent implements OnInit { batchcmdsafeurl: any; appconfigsafeurl: any; rmListen: any; - @ViewChild('launchbtn', { read: ElementRef }) - launchbtn: ElementRef; + @ViewChild('launchbtn', { read: ElementRef, static: false }) launchbtn: ElementRef; setFocus: Boolean; sub: Subscription; diff --git a/src/polyfills.ts b/src/polyfills.ts index af84770782bb064a7de007c9de8113bab08811cc..81a2d68c3d707965f8140286a7efacc38bb0c7ca 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -43,7 +43,7 @@ /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. -import 'core-js/es7/reflect'; +//import 'core-js/es7/reflect'; /**