mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#631 add dialog polyfill for firefox and safari
This commit is contained in:
@@ -24,6 +24,7 @@ import { FormFieldModel } from '../core/form-field.model';
|
||||
|
||||
declare let __moduleName: string;
|
||||
declare var componentHandler;
|
||||
declare let dialogPolyfill: any;
|
||||
|
||||
@Component({
|
||||
moduleId: __moduleName,
|
||||
@@ -122,6 +123,11 @@ export class AttachWidget extends WidgetComponent implements OnInit {
|
||||
public showDialog() {
|
||||
this.setupFileBrowser();
|
||||
this.getExternalContentNodes();
|
||||
|
||||
if (!this.dialog.nativeElement.showModal) {
|
||||
dialogPolyfill.registerDialog(this.dialog.nativeElement);
|
||||
}
|
||||
|
||||
if (this.dialog) {
|
||||
this.dialog.nativeElement.showModal();
|
||||
}
|
||||
|
Reference in New Issue
Block a user