From 689f39d365bea81c229f236c4a8609a82074f757 Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Thu, 9 Jul 2020 12:25:46 -0500 Subject: [PATCH] Modified Chrome to pass in null unicode on clear --- src/services/browserPlatformUtils.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/browserPlatformUtils.service.ts b/src/services/browserPlatformUtils.service.ts index dfbe665a65..2efa28cf69 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.