diff --git a/src/cdk/clipboard/pending-copy.ts b/src/cdk/clipboard/pending-copy.ts index 9d2670beb752..cc1de4e7c6fe 100644 --- a/src/cdk/clipboard/pending-copy.ts +++ b/src/cdk/clipboard/pending-copy.ts @@ -34,6 +34,8 @@ export class PendingCopy { styles.left = '-999em'; textarea.setAttribute('aria-hidden', 'true'); textarea.value = text; + // Making the textarea `readonly` prevents the screen from jumping on iOS Safari (see #25169). + textarea.readOnly = true; this._document.body.appendChild(textarea); }