diff --git a/src/services/browserPlatformUtils.service.ts b/src/services/browserPlatformUtils.service.ts index dfbe665a65..ee413320a7 100644 --- a/src/services/browserPlatformUtils.service.ts +++ b/src/services/browserPlatformUtils.service.ts @@ -207,6 +207,10 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService this.clipboardWriteCallback(text, clearMs); } } else if (doc.queryCommandSupported && doc.queryCommandSupported('copy')) { + if (this.isChrome() && text === '') { + text = '\u0000'; + } + const textarea = doc.createElement('textarea'); textarea.textContent = text == null || text === '' ? ' ' : text; // Prevent scrolling to bottom of page in MS Edge.