From 45c07b7c394f33abca2d35b1689743e493a824d8 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 31 Dec 2019 14:35:58 -0500 Subject: [PATCH] Append copy textarea to model for all browsers --- src/services/webPlatformUtils.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/webPlatformUtils.service.ts b/src/services/webPlatformUtils.service.ts index d48133c8f1..225eaf5fdb 100644 --- a/src/services/webPlatformUtils.service.ts +++ b/src/services/webPlatformUtils.service.ts @@ -270,8 +270,8 @@ export class WebPlatformUtilsService implements PlatformUtilsService { // Prevent scrolling to bottom of page in MS Edge. textarea.style.position = 'fixed'; let copyEl = doc.body; - // For some reason copy command won't work in Firefox when modal is open if appending to body - if (this.isFirefox() && doc.body.classList.contains('modal-open')) { + // For some reason copy command won't work when modal is open if appending to body + if (doc.body.classList.contains('modal-open')) { copyEl = doc.body.querySelector('.modal'); } copyEl.appendChild(textarea);