From 023fb1841259a61b361066ca369aeffd488efa3f Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Fri, 30 Oct 2020 09:44:17 -0400 Subject: [PATCH] fix(ios): contenteditable elements are now selectable on iOS (#22404) Co-authored-by: Chris Lo --- core/src/components/app/app.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/src/components/app/app.scss b/core/src/components/app/app.scss index 22d3de19c5..e703dacc3e 100644 --- a/core/src/components/app/app.scss +++ b/core/src/components/app/app.scss @@ -3,6 +3,16 @@ html.plt-mobile ion-app { user-select: none; } +/** + * This works around a WebKit issue + * where user-select: none was causing + * contenteditable to not be selectable, + * even though inputs and textareas are selectable. + */ +html.plt-mobile ion-app [contenteditable] { + user-select: text; +} + ion-app.force-statusbar-padding { --ion-safe-area-top: 20px; }